Skip to content

bug: 401 Unauthorized #34

Description

@z3nnix

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

://

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions