Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'headers') #574

Open
EgorEast opened this issue Apr 16, 2024 · 2 comments

Comments

@EgorEast
Copy link

I am sending the file to the s3 service, but an error occurs with the status 201, but with the response "User not found".

Headers:
image

Preview:
image

The problem is that with such an error, the library issues its own untraceable error
image
What is indicated in sources
image

Sometimes indicates that credentials are not specified

@sigmachirality
Copy link

sigmachirality commented Apr 17, 2024

+1, also getting this error atm

Screenshot 2024-04-17 at 1 34 20 PM

Trace stack points to the same line

Screenshot 2024-04-17 at 1 35 06 PM

Was able to get the original error by rewriting the request in fetch, but ideally the error would propagate correctly/wouldn't get eaten by this line

Screenshot 2024-04-17 at 1 45 06 PM

Curious to see how this'll get resolved

@sholladay
Copy link
Collaborator

The error indicates that you are passing undefined as the first argument to Ky.

Could you please show your code that causes the error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants