Skip to content

[bug] API#fetchDoujin returning 404 (Not Found) #17

@apexliberta

Description

@apexliberta
  • Engine: [ex. Nodejs v12]
  • I am using the latest version of this library (4.0.0)

Description
I think the recent update to the site API two days back it broke the package.

Code

nlm.api.ts:110  GET https://nhentai.net/api/gallery/?sort=637127 404 (Not Found)
(anonymous) @ nhentai-update.js?v=85daab6d:312
(anonymous) @ nhentai-update.js?v=85daab6d:296
__awaiter @ nhentai-update.js?v=85daab6d:278
fetch @ nhentai-update.js?v=85daab6d:311
(anonymous) @ nhentai-update.js?v=85daab6d:356
(anonymous) @ nhentai-update.js?v=85daab6d:296
__awaiter @ nhentai-update.js?v=85daab6d:278
fetchDoujin @ nhentai-update.js?v=85daab6d:348
nhFetcher @ nlm.api.ts:110
fetchAndAdd @ nlm.api.ts:387
await in fetchAndAdd
handleAdd @ AddModal.tsx:42
(anonymous) @ chunk-2AZOZOMR.js?v=85daab6d:134
AddModal.tsx:45 Failed to add 637127 SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
handleAdd @ AddModal.tsx:45
await in handleAdd
(anonymous) @ chunk-2AZOZOMR.js?v=85daab6d:134

Expected vs. Current behavior
fetch should return a json but its returning html

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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