Skip to content
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

URL argument must be a string #8

Open
Dakota-Brown opened this issue Jan 24, 2020 · 1 comment
Open

URL argument must be a string #8

Dakota-Brown opened this issue Jan 24, 2020 · 1 comment

Comments

@Dakota-Brown
Copy link

Dakota-Brown commented Jan 24, 2020

I have my app up and running on Heroku, however, when I post to it, I receive the following error from the app: "body": "The ticket was not created"

And this error on the console: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received type undefined.

I am sure this is a simple fix, but I am not sure what I am doing wrong. I haven't made any customizations, this is the stock cloned app. This might not be super helpful, I am still learning how to use everything and more than happy to provide more context if needed.

Here is the exact error:
2020-01-24T18:53:15.765366+00:00 app[web.1]: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received type undefined 2020-01-24T18:53:15.765383+00:00 app[web.1]: at validateString (internal/validators.js:112:11) 2020-01-24T18:53:15.765386+00:00 app[web.1]: at Url.parse (url.js:155:3) 2020-01-24T18:53:15.765388+00:00 app[web.1]: at Object.urlParse [as parse] (url.js:150:13) 2020-01-24T18:53:15.765391+00:00 app[web.1]: at dispatchHttpRequest (/app/node_modules/axios/lib/adapters/http.js:67:22) 2020-01-24T18:53:15.765395+00:00 app[web.1]: at new Promise (<anonymous>) 2020-01-24T18:53:15.765397+00:00 app[web.1]: at httpAdapter (/app/node_modules/axios/lib/adapters/http.js:20:10) 2020-01-24T18:53:15.765399+00:00 app[web.1]: at dispatchRequest (/app/node_modules/axios/lib/core/dispatchRequest.js:59:10) 2020-01-24T18:53:15.765401+00:00 app[web.1]: at processTicksAndRejections (internal/process/task_queues.js:94:5) { 2020-01-24T18:53:15.765403+00:00 app[web.1]: code: 'ERR_INVALID_ARG_TYPE' 2020-01-24T18:53:15.765405+00:00 app[web.1]: }

@Dakota-Brown
Copy link
Author

Stackoverflow post with more information. Link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant