Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Parse.query() raisesUncaught (in promise) Error: Failed to execute 'has' on 'Headers': Invalid name #2753

Open
@Niccari

Description

New Issue Checklist

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

  1. Fetch a parse.min.js
 <script type="text/javascript" src="https://unpkg.com/parse/dist/parse.min.js"></script>
  1. Initialization
 Parse.initialize(id, token);
 Parse.serverURL = 'https://parseapi.back4app.com/';
  1. 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.

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

Image

Image

Client debug log

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /