Giter Club home page Giter Club logo

Comments (6)

brianleroux avatar brianleroux commented on August 16, 2024

weird! I'll investigate today --- thx for the heads up

from functions.

brianleroux avatar brianleroux commented on August 16, 2024

quick update: just reproduced this and looking into a fix!

from functions.

brianleroux avatar brianleroux commented on August 16, 2024

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

screen shot 2017-10-01 at 8 42 26 pm

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.

brianleroux avatar brianleroux commented on August 16, 2024

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.

hicksy avatar hicksy commented on August 16, 2024

Nice one (sorry for slow reply) - upgraded to architect/[email protected] and working great 👍

from functions.

brianleroux avatar brianleroux commented on August 16, 2024

awesome!! thx for helping work thru it 💯

from functions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.