question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't continue upload, session expired. Please, start upload again. [403]

See original GitHub issue

I am having an issue when trying to upload files i receive a 403 : Can’t continue upload, session expired. Please, start upload again. [403]

Meteor-files 2.0.1 Meteor 2.1

Cannot reproduce on localhost (working fine on development)

Server logs

3577|demo  | 2021-03-15 09:18 +01:00: [FilesCollection] [File Start HTTP] file.pdf - xvbNMxEdkxymmuFWE
3577|demo  | 2021-03-15 09:18 +01:00: [FilesCollection] [Upload] [HTTP Start Method] Got #-1/3 chunks, dst: file.pdf
3577|demo  | 2021-03-15 09:18 +01:00: [FilesCollection] [Upload] [HTTP] Got #1/3 chunks, dst: file.pdf
3577|demo  | 2021-03-15 09:18 +01:00: [FilesCollection] [Upload] [HTTP] Got #2/3 chunks, dst: file.pdf
3577|demo  | 2021-03-15 09:18 +01:00: [FilesCollection] [Abort Method]: xvbNMxEdkxymmuFWE - /home/apps/demo/uploads/rKUploads/xvbNMxEdkxymmuFWE.pdf
3577|demo  | 2021-03-15 09:18 +01:00: [FilesCollection] [remove({"_id":"xvbNMxEdkxymmuFWE"})]
3577|demo  | 2021-03-15 09:18 +01:00: [FilesCollection] [unlink(xvbNMxEdkxymmuFWE, undefined)]
3577|demo  | 2021-03-15 09:18 +01:00: [FilesCollection] [_preCollectionCursor.observe] [removed]: xvbNMxEdkxymmuFWE
3577|demo  | 2021-03-15 09:18 +01:00: [FilesCollection] [_preCollectionCursor.observe] [removeUnfinishedUpload]: xvbNMxEdkxymmuFWE

Client logs

Screenshot 2021-03-15 at 09 20 12

The error occurs on different servers (Our application is deployed on different servers i.e. we have multiple independent apps on multiple servers and the error is the same) This was working fine for a long time. We recently changed some settings in cloudflare (I don’t know if this is a hint)

Thanks for your help.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dokithononcommented, Mar 15, 2021

Thanks for your help on the phone. We solved the problem by adding a cloudflare rule :

Screenshot 2021-03-15 at 13 30 52
0reactions
dokithononcommented, Mar 15, 2021

I see a 408 (as you mentioned before). Screenshot 2021-03-15 at 10 49 40

I received a 403. Strange. There might be something with the caching of cloudflare ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is the 403 Forbidden Error and How to Fix It (8 Methods ...
1. Check the .htaccess File · 2. Reset File and Directory Permissions · 3. Disable WordPress Plugins · 4. Upload an Index Page...
Read more >
How to Fix Session Has Expired Error on the Internet
If your Internet connection is unstable, periodically disconnecting and reconnecting, it can cause a website session to expire. When the ...
Read more >
403 Forbidden error: What it is and how to fix it - Allconnect.com
It simply means that, for some predetermined reason, the website's content you're trying to access is being blocked. The reason might be within ......
Read more >
How to Fix 'Your Session Has Expired, Please Refresh and ...
How to Fix 'Your Session Has Expired, Please Refresh and Try Again ' Error on Reddit.There have been many issues with Reddit lately...
Read more >
How to Fix 403 Forbidden Error on Google Chrome
The 403 Forbidden error means that your browser thinks you don't have permission to view the web page or internet resource at the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found