-
-
Notifications
You must be signed in to change notification settings - Fork 596
Issue uploading files #1579
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
Labels
bounty:$20
Bounty applies for fixing this issue (Parse Bounty Program)
state:released
Released as stable version
state:released-alpha
Released as alpha version
state:released-beta
Released as beta version
type:bug
Impaired feature or lacking behavior that is likely assumed
Comments
Thanks for opening this issue!
|
Here's a PR with failing test cases: #1578 |
This was referenced Oct 21, 2022
Note: This issue is currently blocking the beta release #1589 |
🎉 This change has been released in version 3.5.0-alpha.8 |
🎉 This change has been released in version 3.5.1-beta.1 |
🎉 This change has been released in version 3.5.1-alpha.1 |
🎉 This change has been released in version 3.5.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bounty:$20
Bounty applies for fixing this issue (Parse Bounty Program)
state:released
Released as stable version
state:released-alpha
Released as alpha version
state:released-beta
Released as beta version
type:bug
Impaired feature or lacking behavior that is likely assumed
New Issue Checklist
Issue Description
Parse server throws the following error while uploading files:
The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
Steps to reproduce
Using File API of Parse SDK:
Using File upload Rest API:
Actual Outcome
For File API of Parse SDK:
For File upload Rest API:
Expected Outcome
Successfully upload the file and respond with the URL to the file. A sample success response would be:
Environment
This issue occurs with Parse SDK version
^3.5.0-alpha.6
. Please note that the same version of Parse SDK must be used in Parse Server. Parse Server uses the latest released version of Parse SDK (3.4.2) by default. You will need to override the SDK version for Parse server. To do so, you can add the following inpackage.json
:Also note that npm package overriding is only supported from npm version >=8.3.0.
Server
5.2.8
,5.3.0-alpha.30
macOS Monterey
,Ubuntu 22.04.1 LTS
local
.Digital Ocean
Database
Postgres
PostgreSQL 14.1
local
, 'Digital Ocean'Client
Javascript
^3.5.0-alpha.6
Logs
error: Error creating a file: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined {"code":"ERR_INVALID_ARG_TYPE","stack":"TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined\n at new NodeError (node:internal/errors:393:5)\n at Function.from (node:buffer:328:9)\n at createHandler (/api/node_modules/parse-server/src/Routers/FilesRouter.js:167:35)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)"} error: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined {"code":130,"stack":"TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined\n at new NodeError (node:internal/errors:393:5)\n at Function.from (node:buffer:328:9)\n at createHandler (/api/node_modules/parse-server/src/Routers/FilesRouter.js:167:35)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)"}
The text was updated successfully, but these errors were encountered: