Request failed with status code 404 #1

Closed
opened 2023-10-08 21:33:02 +02:00 by KristjanESPERANTO · 2 comments
KristjanESPERANTO commented 2023-10-08 21:33:02 +02:00 (Migrated from github.com)

I'm getting a 404 response. What I'm doing wrong?

My code:

import { MangroveReviews } from "mangrove-reviews-typescript";

const subReviews = await MangroveReviews.getReviews({ sub: "geo:51.4954589,11.9659188", q: "verwöner", u: 30, issuers: true, maresi_subjects: true });

console.log(subReviews.reviews);

The the top of the error message:

/###/node_modules/mangrove-reviews-typescript/node_modules/axios/dist/node/axios.cjs:1913
    reject(new AxiosError(
           ^
AxiosError: Request failed with status code 404
    at settle (/###/node_modules/mangrove-reviews-typescript/node_modules/axios/dist/node/axios.cjs:1913:12)
    at IncomingMessage.handleStreamEnd (/###/node_modules/mangrove-reviews-typescript/node_modules/axios/dist/node/axios.cjs:2995:11)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'ERR_BAD_REQUEST',
I'm getting a 404 response. What I'm doing wrong? My code: ```js import { MangroveReviews } from "mangrove-reviews-typescript"; const subReviews = await MangroveReviews.getReviews({ sub: "geo:51.4954589,11.9659188", q: "verwöner", u: 30, issuers: true, maresi_subjects: true }); console.log(subReviews.reviews); ``` The the top of the error message: ```node /###/node_modules/mangrove-reviews-typescript/node_modules/axios/dist/node/axios.cjs:1913 reject(new AxiosError( ^ AxiosError: Request failed with status code 404 at settle (/###/node_modules/mangrove-reviews-typescript/node_modules/axios/dist/node/axios.cjs:1913:12) at IncomingMessage.handleStreamEnd (/###/node_modules/mangrove-reviews-typescript/node_modules/axios/dist/node/axios.cjs:2995:11) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1359:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'ERR_BAD_REQUEST', ```
KristjanESPERANTO commented 2024-12-29 00:09:02 +01:00 (Migrated from github.com)

@pietervdvn Did you noticed this issue?

@pietervdvn Did you noticed this issue?
pietervdvn commented 2024-12-31 20:28:31 +01:00 (Migrated from github.com)

Talk about reviving old issues ;)

The mangrove documentation is horribly confusing. I've now added some code that automatically converts everything in the required format.

Use version 1.3.0 and your code above should work.

Talk about reviving old issues ;) The mangrove documentation is horribly confusing. I've now added some code that automatically converts everything in the required format. Use version 1.3.0 and your code above should work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: MapComplete/Mangrove-reviews-typescript#1
No description provided.