parse-community / parse-community/parse-server

File uploading works only with /parse in serverURL ('http://localhost:1337/parse')

Open
#8,515 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:bug
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Issue Checklist
Issue Description

I can use a files uploading feature without errors (error: {"error":"Unexpected token - in JSON at position 0"}) only if I set '/parse' as a mount point in server's config:

mountPath: /parse
serverURL: http://localhost:1337/parse
publicServerURL: http://localhost:1337/parse

So Is it critical requirement to use '/parse' as a mount point? Or there is a way to escape such point and have URLs without /parse?

Steps to reproduce

Try to remove /parse

Actual Outcome
Expected Outcome
Environment

Server

  • Parse Server version: 6.0.0
  • Operating system: Linux Mint 20.2 Cinnamon and docker
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: mongo:4
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): javascript
  • SDK version: @types/parse": "^2.18.13
Logs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is identified. Start by reproducing file uploads with mountPath, serverURL, and publicServerURL both using and omitting /parse, then trace the server's file-upload route and the reported JSON parsing error. Done means uploads work and produce correct URLs without requiring /parse, or the configuration requirement is documented clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.