Parse-SDK-JS icon indicating copy to clipboard operation
Parse-SDK-JS copied to clipboard

Unsuccessful cancellation of Parse File

Open JeromeDeLeon opened this issue 5 years ago • 5 comments

Issue Description

I was trying to cancel an a PFile when I noticed in my network that it successfully cancelled the PFile but created another request to continue saving the file. I tried checking who called it the second time and to my surprise, it went another attempt to save the file because of this.

Steps to reproduce

  1. Create a ParseFile using JS SDK
  2. Save it
  3. Create a setTimeout to mimic interruption after 2s
  4. Cancel it

Expected Results

Cancel the file

Actual Outcome

Cancel the first request, then shortly after created another request to continue the previous one.

Test Case

I don't know how will I be able to reproduce this one on a test

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 4.2.0
    • Operating System: Ubuntu 18.04
    • Hardware:
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): localhost
  • JS SDK

    • JS SDK version: 2.13.0
    • Application? (Browser, Node, React-Native, etc): Browser

Logs/Trace

image

JeromeDeLeon avatar May 06 '20 07:05 JeromeDeLeon

That's an interesting one! I assume this affects all requests to parse server since its the RESTController, not only Parse.File requests?

mtrezza avatar May 23 '20 18:05 mtrezza

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.

stale[bot] avatar Aug 15 '20 23:08 stale[bot]

@JeromeDeLeon Hello, did you figure out how to cancel a file upload? Because I have the same problem after canceling, the Parse tries to upload the file 4 more times (if you cancel each one).

baradatbiu avatar Aug 10 '22 13:08 baradatbiu

@baradatbiu Unfortunately no and I'm not even sure if it was fix now since I haven't used this lib in a long time.

JeromeDeLeon avatar Aug 10 '22 14:08 JeromeDeLeon

I'll reopen this as the issue still seems to be exist as indicated by @baradatbiu's comment. This as been closed by the stale bot which has since been disabled.

mtrezza avatar Aug 11 '22 09:08 mtrezza