bug: 401 Unauthorized

Open
#34 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
openapi, ruby, typescript
Domain
api

Research direction

Start by reproducing the GET request to https://api.revolt.chat/bots/__BOT__ with the X-Session-Token shown in the issue and inspect how this TypeScript client represents the same API call. Trace the relevant generated OpenAPI entry point, if present, and verify the authenticated request against the reported 401 response. Done means the cause and an appropriate client or API-facing correction are identified and covered by the repository's available checks.

Written by the indexing model from the issue text.

Description

bug
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

://

Dominant language
TypeScript
Stars
42
Forks
34
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stoatchat/javascript-client-api

All issues in stoatchat/javascript-client-api

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.