Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Unable to self-host API due to Error: TypeError: json.map is not a function #36

Description

@ThatOneCalculator

Upon cloning the repo, installing deps, and running node index.js, I get this error:

➜  api git:(main) ✗ node index.js     
Duplicated:
  There is no duplicated instance!

[17:41:53] Getting Instances' Infos
[17:41:53] Getting Misskey Versions
[17:41:53] GitHub misskey-dev/misskey Start
/home/kainoa/Downloads/api/getInstancesInfos.js:285
			).catch(e => { throw Error(e) })
			                    ^

Error: TypeError: json.map is not a function
    at /home/kainoa/Downloads/api/getInstancesInfos.js:285:25
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async getVersions (/home/kainoa/Downloads/api/getInstancesInfos.js:259:17)
    at async module.exports.getInstancesInfos (/home/kainoa/Downloads/api/getInstancesInfos.js:303:38)

Node.js v19.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions