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

Parse Error: Invalid header value char #926

Closed
MickaelAustoni opened this issue Aug 31, 2023 · 4 comments · Fixed by #1032
Closed

Parse Error: Invalid header value char #926

MickaelAustoni opened this issue Aug 31, 2023 · 4 comments · Fixed by #1032
Assignees
Labels
bug Something isn't working
Milestone

Comments

@MickaelAustoni
Copy link

Hello,

when i try to use url input target :

input: {
    target: "https://{MY_DOMAIN}/openapi.json",
},

i got a error :

Parse Error: Invalid header value char

but when i download the json file and set local path target :

 input: "./openapi.json",

it's work !!

I have try to disable parser validation :

input: {
  parserOptions: {
    validate: false,
  },
  target: "https://{MY_DOMAIN}/openapi.json",
},

but i got a other error :

api - Error: ENOENT: no such file or directory, open "https://{MY_DOMAIN}/openapi.json"

What versions are you using?

Operating System: : MacOs
Package Version: : 6.17.0
Browser Version: Chrome 116.0.5845.140

@melloware melloware added the bug Something isn't working label Nov 3, 2023
@melloware
Copy link
Collaborator

What is {MY_DOMAIN} where is it declared? Doesn't this need to be a real URL?

@melloware melloware added waiting validation and removed bug Something isn't working labels Nov 10, 2023
@melloware melloware added this to the 6.21.0 milestone Nov 10, 2023
@melloware melloware linked a pull request Nov 10, 2023 that will close this issue
@melloware melloware self-assigned this Nov 10, 2023
@melloware melloware added bug Something isn't working and removed waiting validation labels Nov 13, 2023
@MickaelAustoni
Copy link
Author

MickaelAustoni commented Nov 14, 2023

What is {MY_DOMAIN} where is it declared? Doesn't this need to be a real URL?

MY_DOMAIN is just for the example !

@melloware
Copy link
Collaborator

Yep I fixed it for next release.

@MickaelAustoni
Copy link
Author

@melloware Very nice 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants