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.

TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string.

See original GitHub issue

I’m having an issue with the server update query. My server is fully set up and works nicely with this options on the electron autoUpdater.setFeedURL :

let options = {
   url: `${url}/update/${os.platform()}/${app.getVersion()}/stable`
}
autoUpdater.setFeedURL(options);

But when i replace os.platform() by a string like this :

let options = {
   url: `${url}/update/win64/${app.getVersion()}/stable`
}
autoUpdater.setFeedURL(options);

I get this : Sending 500 ("Server Error") response: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received type undefined at Url.parse (url.js:150:11)

Otherwise it seems to understand my query before throwing me this error:

| Windows Update Search Query { platform: [ 'windows_64' ],
|   version: '1.1.1',
|   channel: 'stable' }
| Applicable Channels [ 'stable' ]
| Time Filter { '>=': 2018-08-06T17:02:37.000Z }
| Latest Windows Version { assets:
|    [ { name: 'SlipBot-1.1.1-full.nupkg',
|        platform: 'windows_64',
|        filetype: '.nupkg',
|        hash: 'A7D1A45796284232D8E54A0A9150F74731D978E5',
|        size: 78692234,
|        download_count: 0,
|        fd:
|         '/var/www/slipbot.idden.me/.tmp/uploads/assets/f5353fdd-d76d-4a47-94c7-6b0fa887ffca.nupkg',
|        createdAt: '2018-08-06T18:09:08.000Z',
|        updatedAt: '2018-08-06T18:09:08.000Z',
|        version: '1.1.1' } ],
|   channel: 'stable',
|   name: '1.1.1',
|   notes: '',
|   createdAt: '2018-08-06T17:02:37.000Z',
|   updatedAt: '2018-08-06T17:02:37.000Z' }

I really don’t understand whats happening here, can you help me ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
andypaxocommented, Dec 19, 2019

It’s over a year later and the issue has been closed, but this is the first search result for the error, so I’ll leave instructions on how to deal with the problem here, as I just ran into the same issue.

This error occurs when appUrl is unset in the config. It should be set to the base URL of your release server. If you’re using your own local.config, then this can be set in the config file itself. If you’re using the provided docker.config, then set the APP_URL environment variable.

0reactions
stale[bot]commented, Oct 7, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AXIOS : Error : The "url" argument must be of type string ...
You have put url inside the config confie parameter but it must be before the config. axios.get(url, {auth: { username: process.env.account, ...
Read more >
The "url" argument must be of type string. Received ... - GitHub
I'm trying to use a PostgreSQL URI to connect but i'm getting an error, [1] url.js:150 [1] throw new ERR_INVALID_ARG_TYPE('url', 'string', url); ...
Read more >
The "url" argument must be of type string. Received undefined ...
The error says, provided url argument has a non-string value so make sure by printing/consol the url property has the correct value or...
Read more >
The "url" argument must be of type string. Received undefined
I am receiving this error during the deployment of my express/node app using App platform. Couldn't figure what is the problem! config.json:
Read more >
[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path ...
Have you run into the error “TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined”? In this story I'll go...
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