Comments (7)
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.
(the difference being the encoding of the brackets and the use of 0 and 1 for the indices)
from aws-sdk-php.
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¶m[]=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.
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.
⚠️ 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.
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.
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)
- Yum package
- InstanceProfile credentials provider causing open_basedir restriction error since 3.297.0 HOT 2
- Aws SQS: VisibilityTimeout value is zero and type is string instead integer HOT 5
- What version should I specify for MediaPackage and MediaPackageVod client? HOT 3
- PostObjectV4 with Custom Domain HOT 5
- File paths are not safe for Windows HOT 2
- fopen() throws Error executing "GetObject" HOT 1
- GetObject() command @http stream issue HOT 3
- Error when trying to list objects from a public S3 bucket via the listObjectsV2() function. HOT 2
- S3 PutObject doesn't work on VPN HOT 1
- ObjectUploader fails for files >16mb with Aws\S3\Exception\S3MultipartUploadException HOT 4
- S3Client: `upload()` returns differently encoded `ObjectURL`, depending on the uploaded file size (e.g. `%2F` instead of `/`) HOT 3
- Version 3.311.0 always triggers “Aws\\Command::setAuthSchemes is deprecated” HOT 8
- Intermittently getting EndpointDiscoveryException's thrown when attempting to write records to timestream. HOT 5
- Missing dependency for symfony/filesystem HOT 2
- Unable to establish Cognito client connection HOT 5
- SQS: unable to send messages to local endpoint HOT 2
- Announcing the upcoming deprecation of PHP runtimes 8.0.x and below
- Missing functions in Aws\S3\StreamWrapper HOT 1
- Fast CGI appears to crash when I update AWS SDK for PHP 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 aws-sdk-php.