-
-
Notifications
You must be signed in to change notification settings - Fork 600
Closed
Labels
state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha version
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and the Parse JS SDK.
Issue Description
If any of the Parse.find queries are executed, an Uncaught (in promise) Error: Failed to execute 'has' on 'Headers': Invalid name exception is raised when the request is received.
Steps to reproduce
- Fetch a parse.min.js
<script type="text/javascript" src="https://unpkg.com/parse/dist/parse.min.js"></script>- Initialization
Parse.initialize(id, token);
Parse.serverURL = 'https://parseapi.back4app.com/';- Run a query
const refQuery = new Parse.Query(SomeSchemaName);
refQuery
.equalTo('someParam', someParamValue).limit(1000);
.find() // without `find()` or any filter, the error be raised too
.then((results) => {
// ...
})
.catch((error) => {
// The error will be raised
});Actual Outcome
Uncaught (in promise) Error: Failed to execute 'has' on 'Headers': Invalid name thrown at the below header check.
Parse-SDK-JS/src/RESTController.ts
Line 161 in 7bec0fd
| if (response.headers.has(header)) { |
Expected Outcome
Query result will be retrieved.
Environment
Server
- Parse Server version: 6.2.0
- Operating system: not disclosed
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Back4App
Database
- System (MongoDB or Postgres): MongoDB
- Database version: 3.6.0
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Back4App
Client
- Parse JS SDK version: 7.0.0
- Chrome Version 141.0.7390.108 (Official Build) (arm64)
- MacOS 26.0.1
Logs
Parse server response
Client debug log

Metadata
Metadata
Assignees
Labels
state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha version
