Skip to content

Unable to read account info via REST API /account/<id>/ #35

@stuartc-graphcore

Description

@stuartc-graphcore

I can successfully create an account entry with POST to /account/ but cannot read back the account info via the generated URL.
After creation I can list entries:

(tools) stuartc@stuartc-malt1 code % http GET https://credits.apps.gbnwp-cl2.ipu.graphcore.ai/account/  Authorization:'Bearer bxxxxx5'                    
HTTP/1.1 200 OK
Allow: GET, POST, HEAD, OPTIONS
Connection: keep-alive
Content-Length: 171
Content-Type: application/json
Cross-Origin-Opener-Policy: same-origin
Date: Thu, 10 Apr 2025 13:41:53 GMT
Referrer-Policy: same-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Accept
X-Content-Type-Options: nosniff
X-Frame-Options: DENY

[
    {
        "created": "2025-04-10T12:54:58.008097Z",
        "email": "stuartc@graphcore.ai",
        "id": 2,
        "name": "Stuart Cornell",
        "url": "http://credits.apps.gbnwp-cl2.ipu.graphcore.ai/account/2/"
    }
]

but cannot GET


(tools) stuartc@stuartc-malt1 code % http GET https://credits.apps.gbnwp-cl2.ipu.graphcore.ai/account/2/  Authorization:'Bearer bxxxxx5'                   
HTTP/1.1 500 Internal Server Error
Connection: keep-alive
Content-Length: 145
Content-Type: text/html; charset=utf-8
Cross-Origin-Opener-Policy: same-origin
Date: Thu, 10 Apr 2025 13:41:59 GMT
Referrer-Policy: same-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY

<!doctype html>
<html lang="en">
<head>
  <title>Server Error (500)</title>
</head>
<body>
  <h1>Server Error (500)</h1><p></p>
</body>
</html>

NOTE that the https/http difference is not the issue. A GET at the http endpoint just gives a redirect to https - which fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions