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.

ERR_UNESCAPED_CHARACTERS

See original GitHub issue

Hey Guys, im trying to get this package working for a typescript project, so I have serverless with serverless-webpack plugin transpiling my code, all Is well until I actually try to hit the endpoint I created (which is a graphql enpoint wrapped in a NestJS Application), im getting the following error:

ERROR: aws-serverless-express error
TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
    at new ClientRequest (_http_client.js:127:13)
    at Object.request (http.js:38:10)
    at forwardRequestToNodeServer (/home/sidhenidon/Projects/clasify-serverless/node_modules/aws-serverless-express/index.js:119:26)
    at proxy (/home/sidhenidon/Projects/clasify-serverless/node_modules/aws-serverless-express/index.js:183:7)
    at Server.startServer.on (/home/sidhenidon/Projects/clasify-serverless/node_modules/aws-serverless-express/index.js:187:32)
    at Server.emit (events.js:132:15)
    at Server.emit (domain.js:439:23)
    at emitListeningNT (net.js:1388:10)
    at process._tickCallback (internal/process/next_tick.js:114:19)
Serverless: [200] {"statusCode":500,"body":"","headers":{}}

I included that line so you could see the response I got back from calling it

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
brettstackcommented, Jul 14, 2018

What’s the URL you’re trying to hit? I’ve read whitespace is a common cause

0reactions
SeratoSDcommented, May 17, 2022

Hi @brettstack I’m facing the same issue but it’s due to whitespace as you said. Im trying to hit: http://127.0.0.1:3000/api/v1/analyze-entities/ 1

¿ What can I do ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError [ERR_UNESCAPED_CHARACTERS] Request ...
I have used axios and the same problem occured. My problem was solved using encodeURI() or encodeURIComponent() functions.
Read more >
how to solve ERR_UNESCAPED_CHARACTERS error? #29
TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters at new ClientRequest (_http_client.js:139:13) at request ...
Read more >
Request path contains unescaped characters - Replit
I am trying to make a rpg discord.js bot with replit database. But unfortunately there's an error. TypeError ERR_UNESCAPED_CHARACTERS : Request path ...
Read more >
Request path contains unescaped characters 해결
TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters at new NodeError (node:internal/errors:371:5) at new ...
Read more >
Request path contains unescaped characters - Code Grepper
typeerror [err_unescaped_characters]: request path contains unescaped characters · Oops, You will need to install Grepper and log-in to perform this action.
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