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.

Simplest example throws `REQUEST_CLIENT_ERROR`

See original GitHub issue

Describe the bug Simplest example throws REQUEST_CLIENT_ERROR. Also happened when using https://github.com/Skillz4Killz/Discordeno-bot-template

To Reproduce Steps to reproduce the behavior:

  1. Go to https://repl.it/@amatiasq/discordeno-bug
  2. See error

Expected behavior I don’t know, I was exploring the tool. It should not crash

Screenshots Screenshot 2020-06-04 at 09 46 47

Additional context https://repl.it/@amatiasq/discordeno-bug

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
TTtiecommented, Jun 4, 2020

@amatiasq The token you provided is actually a client secret. You want to obtain your bot token from here as the client secret is meant for OAuth2 only: image

0reactions
amatiasqcommented, Jun 4, 2020

Thanks @TTtie! that was the issue indeed! so that explains why the “token” was shorter, then.

So for future references check TTie’s response

I’m removing the application now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle errors with boto3? - Stack Overflow
Use the response contained within the exception. Here is an example: import boto3 from botocore.exceptions import ClientError try: iam ...
Read more >
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 >
Spring Web Client Exception Handling | by David - Medium
Below is a sample request with basic error handling: Java code sample of WebClient making a request using the retrieve method to an...
Read more >
Error handling — Boto3 Docs 1.26.37 documentation
This is a general exception when an error response is provided by an AWS service to your Boto3 client's request. Additional client-side issues...
Read more >
Known Response Types throw Exception with wrapped ...
The current implementation of Client generator will throw exceptions when the response code is not 2XX, even when the wrapResponses option is set...
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