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

Expose more info when there is an error #26

Open
julbrs opened this issue Sep 13, 2023 · 0 comments
Open

Expose more info when there is an error #26

julbrs opened this issue Sep 13, 2023 · 0 comments

Comments

@julbrs
Copy link
Contributor

julbrs commented Sep 13, 2023

Hi,

When an error is occuring a NS call, I am ending with a very basic error generated by got. (like HttpError 400).

I think it's linked to this! sindresorhus/got#1126

I would like to have a bit more information like what I can see in Postman:

{
    "type": "https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
    "title": "Bad Request",
    "status": 400,
    "o:errorDetails": [
        {
            "detail": "Error while accessing a resource. Please enter value(s) for: First Name, Last Name.",
            "o:errorCode": "USER_ERROR"
        }
    ]
}
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