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.

Issue with upload files on a local server after update to 1.6.1

See original GitHub issue

Currently trying to upgrade a project to Meteor 1.6.1. I’ve experienced an issue where on my local server that runs on port 3000 files weren’t getting uploaded and I was getting a pretty vague error. After some investigation turns out the HTTP.call()s that happen in upload.js now fail because the port is missing. I’ve forked the package and created a simple fix for the issue here, just not sure it’s the best way to do it. Here’s the code I added that fixed the issue for me.

const port    =  location.port;
let _rootUrl  =  (window.__meteor_runtime_config__.MOBILE_ROOT_URL || window.__meteor_runtime_config__.ROOT_URL).replace(/\/+$/, '');
_rootUrl      += port ? `:${port}` : ""; // concat the port of the server

I’ve made some other changes, like substituting underscore for lodash as Meteor is removing underscore from the defaults they include, so won’t submit a PR for this one yet.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sylidocommented, Apr 9, 2018

Alright, thanks @dr-dimitru , just saying it behaves differently at least for me. I’ll change it to what you suggested, it should work as far as I can see.

0reactions
dr-dimitrucommented, Apr 9, 2018

Please, support this project by:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upload to external storage fails but creates .part file #9915
My nextcloud server has a similar issue. When I try to upload files to a folder just been created by nextcloud in the...
Read more >
Microsoft Office Upload Center
Indicates that the file has changes pending upload, because uploads to the server have been paused. To upload these files, click Resume Uploads...
Read more >
Manual upload of PAN OS file fails via GUI with message ...
Importing the file from a local scp/tftp server can solve the problem. Using scp/tftp to import the file directly saves the file to...
Read more >
Element-IT software products news
Element-IT software news. Here can be found dates or products releases.
Read more >
FileZilla - The free FTP solution
FileZilla - The free FTP solution for both client and server. Filezilla is open source software distributed free of charge.
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