acdh-oeaw / apis-oebl-research-tool-front-end

See also https://redmine.acdh.oeaw.ac.at/issues/18296
https://oebl-research.acdh-dev.oeaw.ac.at
MIT License
0 stars 0 forks source link

search in Zotero API no longer working #30

Closed sennierer closed 2 years ago

sennierer commented 2 years ago

Search in the Zotero API is no longer working. The request is using undefined as a user. Seems as the user set in the .env_production is not working correctly.

Thats the log from the pod showing the false request to the zotero API:

(node:26) UnhandledPromiseRejectionWarning: FetchError: invalid json response body at https://api.zotero.org/users/undefined/items?q=te reason: Unexpected token I in JSON at position 0
    at /workspace/node_modules/node-fetch/lib/index.js:272:32
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
sennierer commented 2 years ago

changed due date to March 11, 2022

sennierer commented 2 years ago

In GitLab by @PhilipRoeggla on Mar 7, 2022, 14:32

created branch 30-search-in-zotero-api-no-longer-working to address this issue

sennierer commented 2 years ago

resolved by moving the env variable to Gitlab

sennierer commented 2 years ago

In GitLab by @PhilipRoeggla on Mar 7, 2022, 14:37

mentioned in commit 350fb93044b440a8c1f0ff5f04e4f60e888b1b9a