bug: 401 Unauthorized #17

Open
opened 2026-02-16 12:28:58 -05:00 by yindo · 1 comment
Owner

Originally created by @z3nnix on GitHub (Oct 10, 2024).

What happened?

require 'uri'
require 'net/http'

url = URI("https://api.revolt.chat/bots/__BOT__")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Session-Token"] = <my token>

response = http.request(request)
puts response.read_body

output:

<html lang="en"> <head> </head>

401: Unauthorized

The request requires user authentication.


Rocket
</html>

://

Originally created by @z3nnix on GitHub (Oct 10, 2024). ### What happened? ```ruby require 'uri' require 'net/http' url = URI("https://api.revolt.chat/bots/__BOT__") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["X-Session-Token"] = <my token> response = http.request(request) puts response.read_body ``` output: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> </head> <body align="center"> <div role="main" align="center"> <h1>401: Unauthorized</h1> <p>The request requires user authentication.</p> <hr /> </div> <div role="contentinfo" align="center"> <small>Rocket</small> </div> </body> </html> ://
yindo added the bug label 2026-02-16 12:28:58 -05:00
Author
Owner

@z3nnix commented on GitHub (Oct 10, 2024):

token is valid btw

@z3nnix commented on GitHub (Oct 10, 2024): token is valid btw
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/javascript-client-api#17