-
Notifications
You must be signed in to change notification settings - Fork 221
RangeError: Maximum call stack size exceeded when uploading image (in version 0.30.1) #270
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
Comments
I think I messed up the version in this issue. When install 0.30.2 with pnpm i replicate@latest I still get this:
I removed the node_modules folder and reinstalled everything with
Edit: nevermind you just published 0.30.2. That is a quick response even though it doesn't seem to have fixed the problem on my side, thank you! |
I just ran into the same problem and in my case it was caused by a missing API token. I forgot to set the environment variable |
Fixes #270 We were falling back to base64 encoding the file data when requests to upload the file failed. However if the client makes an invalid request such as failing to include Authorization headers by forgetting to auth then we should surface these errors. This commit now re-raises any 4xx errors returned while attempting to upload a file and adds tests to verify the behavior.
Fixes #270 We were falling back to base64 encoding the file data when requests to upload the file failed. However if the client makes an invalid request such as failing to include Authorization headers by forgetting to auth then we should surface these errors. This commit now re-raises any 4xx errors returned while attempting to upload a file and adds tests to verify the behavior.
Getting this error under the same circumstances in 0.30.2 and 0.31.1. Double checked that my API token is being passed in and force reinstalled packages. |
I get the following error:
When trying to upload an image like this
I already found this issue #247 which says a fix has been merged in v
0.30.0
. However both0.30.0
and0.30.1
still give me this error while usingpnpm install replicate/replicate-javascript#fix-rangeerror
seemed to fix it for me.I'm on node v20.11.0` M1 pro, macos 14.4.1 (23E224)
The text was updated successfully, but these errors were encountered: