Skip to content
This repository has been 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

Open
ThatOneCalculator opened this issue Mar 15, 2023 · 0 comments

Comments

@ThatOneCalculator
Copy link

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
@ThatOneCalculator ThatOneCalculator changed the title Unable to self-host API due to error Unable to self-host API due to Error: TypeError: json.map is not a function Mar 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant