vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Cannot read properties of undefined (reading 'includes') for GET with query string

Open lonpalmer opened this issue 2 years ago • 1 comments

  • REST Client Version: 0.25.1
  • VSCode Version: 1.8.82
  • OS Version: Windows 11

The following GET request produces "Cannot read properties of undefined (reading 'includes')

GET https://my.server.com/oauth2/v1/authorize ?client_id=myclientid &client_secret=myclientsecret &response_type=code &scope=email%20%openid &state=thisismystate &redirect_uri=this.is.my.redirect.uri

If I remove the redirect_uri the request goes through.

lonpalmer avatar Oct 03 '23 20:10 lonpalmer

I think I've found the issue. I forgot the protocol portion of the URI like https://. Leaving this open in case you would like to improve the error message.

lonpalmer avatar Oct 04 '23 13:10 lonpalmer