Closed
Description
After pasting the session token into the wizard initClientSession
w/CoderRestClientService fails
Response{protocol=http/1.1, code=401, message=Unauthorized, url=https://dev.coder.com/api/v2/users/me}
Thus workspaces are not displayed.
codersdk
session_token:
- https://sourcegraph.com/github.com/coder/coder@d82364b9b5e11546d6e60aa9ff44a468691aea56/-/blob/codersdk/users.go?L110%3A2=#tab=def
- https://sourcegraph.com/github.com/coder/coder@main/-/blob/cli/login.go?L232:53&popover=pinned
- https://sourcegraph.com/github.com/coder/coder@main/-/blob/codersdk/users.go?L16:5&subtree=true&popover=pinned#tab=references
debug
cookies
0 = {HttpCookie@14071} "session_token=3WU8HLU5wV-redact"
1 = {HttpCookie@14072} "csrf_token=recfHuNDh28KUuU5ibJfg+EhP/PRAsqpOxdqMBmasg0="
domainIndex = {HashMap@14066} size = 1
"dev.coder.com" -> {ArrayList@14079} size = 2
token is indeed not null
3WU8HLU5wV-redact
response headers
0 = "Content-Type"
1 = "application/json; charset=utf-8"
2 = "Set-Cookie"
3 = "csrf_token=recfHuNDh28KUuU5ibJfg+EhP/PRAsqpOxdqMBmasg0=; Path=/; HttpOnly; SameSite=Lax"
4 = "Traceparent"
5 = "00-4d59641885f3cb38cdf05293c53b1705-ac97719758fd860e-01"
6 = "Vary"
7 = "Cookie"
8 = "X-Coder-Build-Version"
9 = "v0.12.5-devel+d82364b9"
10 = "X-Coder-Request-Id"
11 = "7af719cc-17f3-4f2d-86dd-8900f9ee154d"
12 = "X-Ratelimit-Limit"
13 = "512"
14 = "X-Ratelimit-Remaining"
15 = "511"
16 = "X-Ratelimit-Reset"
17 = "1667961060"
18 = "X-Span-Id"
19 = "ac97719758fd860e"
20 = "X-Trace-Id"
21 = "4d59641885f3cb38cdf05293c53b1705"
22 = "Date"
23 = "Wed, 09 Nov 2022 02:30:27 GMT"
24 = "Content-Length"
25 = "175"
request url
https://dev.coder.com/api/v2/users/me
request method
GET
request headers
0 = "Host"
1 = "dev.coder.com"
2 = "Connection"
3 = "Keep-Alive"
4 = "Accept-Encoding"
5 = "gzip"
6 = "Cookie"
7 = "session_token=3WU8HLU5wV-redact"
8 = "User-Agent"
9 = "okhttp/4.9.3"
Metadata
Metadata
Assignees
Labels
No labels