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.

Error message when API fails: ERROR[gist] 'html_url'

See original GitHub issue

Creating any ~private~ gist doesn’t work. Poor error message.

❯❯❯ gist create "desc" desc.py
1554687812.729 ERROR[gist] 'html_url'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
wookayincommented, Apr 8, 2019

Hi @jdowner, thanks for your quick response! It was actually my fault to have an invalid token that was misconfigured – sorry about that. I was seeing

{
  "message": "Bad credentials",
  "documentation_url": "https://developer.github.com/v3"
}

After issuing a new token, now it works. However it would be great we can improve the error message – I’ve changed the title of this issue.

1reaction
wookayincommented, Apr 8, 2019
❯❯❯ gist list
1554687910.850 ERROR[gist] string indices must be integers

Has the gist API changed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Practices for REST API Error Handling - Baeldung
The simplest way we handle errors is to respond with an appropriate status code. Here are some common response codes: 400 Bad Request...
Read more >
10 Error Status Codes When Building APIs For The First Time ...
It indicates that the URL you used in your request doesn't exist on the API server, or origin server. While this is a...
Read more >
How do you know what's gone wrong when your API request ...
When an API request doesn't work, hopefully the client receives a sensible HTTP error status, like 409 or 500, which is a good...
Read more >
Web API Error Handling: How To Make Debugging Easier
Indicates that authentication has failed. This could be because of an expired, missing, or invalid token. Indicates that authorization failed. ...
Read more >
Best practices for API error handling and troubleshooting
This document provides details about error cases to be managed by your application, and the error codes and explanations you shall refer to ......
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