GithubHelp home page GithubHelp logo

Comments (7)

GrahamCampbell avatar GrahamCampbell commented on August 15, 2024 1

This is likely because the encoding of the list parameters is not in a supported format. Try with:

https://[redacted].execute-api.eu-west-1.amazonaws.com/dev-ew1/api/v1/users?userId%5B0%5D=2405&userId%5B1%5D=196624&userType=student&oktaId=[redacted]

from aws-sdk-php.

GrahamCampbell avatar GrahamCampbell commented on August 15, 2024

(the difference being the encoding of the brackets and the use of 0 and 1 for the indices)

from aws-sdk-php.

IrisJasonStanley avatar IrisJasonStanley commented on August 15, 2024

Thanks for taking the time to respond. Yesterday I was looking at how query string parameters were being encoded by the library and I was thinking that maybe there is a problem maintaining the order.

I had assumed that param[]=1&param[]=2 was part of the query string spec as this is how it is handled by PHP but now I read up on it I can see this is framework specific. I will change this up today and see if it resolved the problem

from aws-sdk-php.

IrisJasonStanley avatar IrisJasonStanley commented on August 15, 2024

That has solved the issue. Adding multiple parameters with a [] prevents the requests from being signed in a consistent way. Thanks for your help with this.

from aws-sdk-php.

github-actions avatar github-actions commented on August 15, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-sdk-php.

GrahamCampbell avatar GrahamCampbell commented on August 15, 2024

Yeh, there is "the query string spec", however in practice is is not followed to the letter. Many browsers and servers all do different things not in the spec. It's unfortunately pretty common (coming from someone who maintains an HTTP client). 😆

from aws-sdk-php.

stobrien89 avatar stobrien89 commented on August 15, 2024

Thanks @GrahamCampbell,

I think this could be documented better. The closest thing I could find was this blog post from when they first introduced support for multi-value parameters. I'll reach out to the Api Gateway team and see if they're able to make this more visible in their developer guide.

from aws-sdk-php.

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.