Comments (6)
weird! I'll investigate today --- thx for the heads up
from functions.
quick update: just reproduced this and looking into a fix!
from functions.
Update 2: that was fun. I have a fix! If you are feeling adventurous you could apply it manually.
You'll need to update the Integration Response body mapping template for application/json
for the 403
, 404
and 500
statuses.
#set($raw = $input.path('$.errorMessage'))
#set($len = $input.path('$.errorMessage').length() - 1)
#set($body = $raw.substring(25, $len))
$body
The long story short API Gateway utils.parseJson
returns values that do not stringify back to JSON. So we have the above hack which substrings the JSON payload out. It is not pretty but it works. I'll try to land this back into arc-workflows
as soon as I can. (Which then you could just delete the routes in API Gateway and regenerate with npm run create
.
https://6nfxj2b5v4.execute-api.us-east-1.amazonaws.com/staging/api
from functions.
Ok got to it! Fixed in architect/[email protected]
. If you delete the offending routes in API Gateway and then recreate them with npm run create
they should work as expected. Let me know how you go and I'll keep the bug open 👍
from functions.
Nice one (sorry for slow reply) - upgraded to architect/[email protected]
and working great 👍
from functions.
awesome!! thx for helping work thru it 💯
from functions.
Related Issues (20)
- arc.http.express does not correctly resolve the request method HOT 1
- arc.tables indexes HOT 2
- Changing the value of NODE_ENV can break builds HOT 4
- Deploy failed after following quickstart HOT 5
- Feature suggestion for full static manifest output HOT 2
- Improve handling of body parsing errors
- Before erroring out due to a missing entry in the service map, run service discovery once
- Publish to sandbox queue reads events port from wrong property HOT 2
- brotli compression breaks Sandbox livereload HOT 1
- dtslint it pinned, either rework TS lint step or scrap it
- A couple type defs missing for aliases HOT 1
- Arc deploy failing with AWS CICD
- Static does not work with fingerprinting HOT 2
- Type definition for tables()._db, tables()._doc is wrong for nodejs18.x runtime HOT 10
- Allow passing translateConfig to Dynamo client and doc client HOT 8
- Add option to enable/disable brotli compression
- JWE secret is not correctly passed for encryption
- arc.http[.async] in version 7.0.0 are overly strict regarding mixing sync and async middleware
- v8@RC arc.tables()['table'].put() returns empty object
- Improve Error Handling for Large Payloads HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from functions.