-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Request to delete PFFile from Parse Server using REST DELETE with master key returns 404 #4879
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 wouldn't recommend using Parse.Cloud.httpRequest. Instead use the request node package. There exists a test for this Can you try to create a failing test? Ensure your keys are correct. |
I noticed in the test that it passes the rest api key. I included that in my headers, and it still returns 404. I tried it with google cloud storage adapter and also without any adapters simply stored in Mongo – no luck. Thoughts anyone? |
Can you output your logs VERBOSE=1? |
@johndoehelloworld |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We use GitHub Issues for bugs.
If you have a non-bug question, ask on Stack Overflow or Server Fault:
If you have a vulnerability disclosure, please follow our policy available here https://github.com/parse-community/parse-server/blob/master/SECURITY.md
You may also search through existing issues before opening a new one: https://github.com/parse-community/parse-server/issues?utf8=%E2%9C%93&q=is%3Aissue
--- Please use this template. If you don't use this template, your issue may be closed without comment. ---
Issue Description
My request to delete PFFile from Parse Server using REST DELETE with master key returns 404. Code:
I know that the URL is right since when I access it in browser, it returns the image.
I'm using Google Cloud Storage (parse-server-gcs-adapter).
Question: How do I delete files stored as PFFiles?
Related question: How do I overwrite PFFiles?
Note that I'm classifying this as a bug since calling delete on a PFFile is supposed to delete the file. I also asked this question on Stack Overflow, but no luck with help. I'm really hoping I get help here.
Steps to reproduce
Call delete on PFFile URL as so:
Expected Results
Calling delete on PFFile from Parse Server using REST DELETE should delete the file in Google Cloud
Actual Outcome
Request returns 404
Environment Setup
Server
Database
Logs/Trace
Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment.
The text was updated successfully, but these errors were encountered: