8000 Unexpected End of JSON input · Issue #4 · Mondanzo/node-curseforge · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unexpected End of JSON input #4
Open
@Davoleo

Description

@Davoleo

When trying to request game versions of the 2 games listed below an internal exception is thrown with the following message and stacktrace:

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at IncomingMessage.<anonymous> (D:\Everything\Coding\misc\curse-updates\node_modules\node-curseforge\dist\utils.js:51:34)
    at IncomingMessage.emit (node:events:406:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Related API Endpoint: /v1/games/{gameId}/versions

Games Where this issue occurs and is reproduceable:

  • Terraria (id: 431)
  • Starcraft II (id: 65)

Note: this seems to be related to the fact the API returns 404 when requesting game versions for these titles directly

HTTP/1.1 404 Not Found
Content-Length: 0
Connection: close
Date: Mon, 16 May 2022 17:33:24 GMT
X-Cache: Error from cloudfront
Via: 1.1 f0f5607a03d2ae4c43b553dc2cef0c9e.cloudfront.net (CloudFront)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0