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.

server-side code errors out when given a message and an error

See original GitHub issue

on the client Rollbar.error("a message", e) will silently drop the message if e is an error.

on the server this doesn’t happen which results in this error:

API error: Invalid format. data.body must have either a 'trace', 'trace_chain', 'message' or 'crash_report' property, (but not more than one).

i can make a pr to fix this on the server, but i’m curious if the client side behavior is really the desired behavior?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rokobcommented, Jun 15, 2017

I’ll get this out today

0reactions
sarkistltcommented, Jun 15, 2017

ok, cool

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Error Status Codes When Building APIs For The First Time ...
Let's look at the 10 most common HTTP status codes that indicate an error response, either on the client or the server-side.
Read more >
What's the best way to deal with an error in the server side and ...
Let's supose that in this code block the directory doesn't exists: lastUpdatedDate('./directoreyDoesntExists/appVersion.js'),. So my code goes ...
Read more >
A Complete Guide and List of HTTP Status Codes
A complete list of HTTP status codes with explaination of what they are, why they occur and what you can do to fix...
Read more >
Should a client / server share error codes?
In my opinion, the marginal benefit obtained by sharing error codes that are likely to have not that much in common is outweighed...
Read more >
Display Server Side Validation Errors with Angular - | juri.dev
The part that's missing is to parse the error. Assume we have a personService that sends the form value back to the server...
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