Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: 401 Unauthorized #34

Open
z3nnix opened this issue Oct 10, 2024 · 1 comment
Open

bug: 401 Unauthorized #34

z3nnix opened this issue Oct 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@z3nnix
Copy link

z3nnix commented 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:

401: Unauthorized

The request requires user authentication.


Rocket

://

@z3nnix z3nnix added the bug Something isn't working label Oct 10, 2024
@github-project-automation github-project-automation bot moved this to 🆕 Untriaged in Revolt Project Oct 10, 2024
@z3nnix
Copy link
Author

z3nnix commented Oct 10, 2024

token is valid btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 Untriaged
Development

No branches or pull requests

1 participant