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.

Custom error fields are not proxied

See original GitHub issue

In order to handle forms validation I’m going to use additional fields inside regular errors (to mention exact fields and failed validation rules), however looks like additional field are not proxied at all.

For example: original endpoint gives me response:

{
  "errors": [
    {
      "message": "An unknown error occurred.",
      "category": "auth",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "authUser"
      ]
    }
  ],
  "data": {
    "authUser": null
  }
}

e.g. with custom field category, and while proxying same query via faker - just

{
  "data": {
    "authUser": null
  },
  "errors": [
    {
      "message": "An unknown error occurred.",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "authUser"
      ]
    }
  ]
}

So my custom category field is lost.

What do you think about proxying complete error?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
RomanHotsiycommented, Nov 23, 2017

oops 🙈 , try v1.6.2 plz

1reaction
IvanGoncharovcommented, Nov 17, 2017

@caseycs Should be pretty easy to fix, I will try to fix it this weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom error pages when using IIS as a reverse proxy
I've set up the custom error page in IIS but it's not serving it -- it's passing through the default 404 page from...
Read more >
Error handling - Apollo GraphQL Docs
The GraphQL operation is not valid against the server's schema. ... You can create a custom errors and codes using the graphql package's...
Read more >
Custom Error Page not showing with using AJP Proxy with ...
I am trying to access the page from an ISP that is not authorised. So it is fine that Forbidden is showing -...
Read more >
enterprise service inbound proxy is not getting custom fields in ...
I can see proxy structure is generated with custom field. Isssue:When abap developer tests enterprise service in SPROXY transaction with test ...
Read more >
Custom Error Handling For Applications - TechDocs
Custom error handling allows you to make error information ... as a proxy or reverse proxy server, the Apache Agent will not return...
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