~rderensy


#40 TypeError: Cannot read property '0' of undefined 2 months ago

Ticket created by ~rderensy on ~cadence/bibliogram-issues

Hi,

On my personal instance (up to date, as well as on every public instance) I get the following error when trying to load this profile:

           ◸―――――――――――――――――――――――――――――――――――――◹
     ···<  |        500. That's an error.        |  >···
           ◺―――――――――――――――――――――――――――――――――――――◿


 ╱  Are you visiting this website? Not sure what's going on?  ╲
 ╲             You might want to come back later.             ╱


TypeError: Cannot read property '0' of undefined
    at /xxx/yyy/bibliogram/src/lib/collectors.js:116:61
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Object.code (/xxx/yyy/bibliogram/src/site/api/routes.js:104:31)

The profile loads correctly on instagram and every other profiles loads correctly on my instance. Is it a bug or a limitation from instagram?

#29 Error 500 when loading a profile 8 months ago

on ~cadence/bibliogram-issues

REPORTED RESOLVED FIXED

#29 Error 500 when loading a profile 8 months ago

Comment by ~rderensy on ~cadence/bibliogram-issues

Alright, at least I can see the latest posts, thanks!

#29 Error 500 when loading a profile 8 months ago

Comment by ~rderensy on ~cadence/bibliogram-issues

Ah indeed, my version is c6ea5ae but I ran ./run.fish from bibliogram-updater to update so I thought it would be up to date. I can see Your branch is behind 'origin/master' by 33 commits. It works now that I pulled the changes but I still get this after the first page:

Timeline loading blocked
Instagram is refusing to provide data to this server.
This server will only be able to load the first page of timelines.
This error is permanent.

Is it supposed to happen given that I'm the only one using the instance? Should I try installing the assistant?

#29 Error 500 when loading a profile 8 months ago

Comment by ~rderensy on ~cadence/bibliogram-issues

module.exports = {
        website_origin: "https://bibliogram.xxxxxx.com",
        bind_ip: "192.168.xxx.xxx",
        has_privacy_policy: true,
        tor: {
                enabled: false
        },
        themes: {
                default: "discord"
        },
        default_user_settings: {
                rewrite_youtube: "invidious.xxxxxx.com",
                rewrite_twitter: "nitter.xxxxxx.com"
        }
}

It's false already (by default) in constants.js

#29 Error 500 when loading a profile 8 months ago

Comment by ~rderensy on ~cadence/bibliogram-issues

I just did and it doesn't solve the problem.

For what it's worth, I am running it with forever start server.js

#29 Error 500 when loading a profile 8 months ago

Comment by ~rderensy on ~cadence/bibliogram-issues

It used to work fine, I haven't modified it in months:

module.exports = {
        website_origin: "https://bibliogram.xxxxxx.com",
        bind_ip: "192.168.xxx.xxx",
        has_privacy_policy: true,
        themes: {
                default: "discord"
        },
        default_user_settings: {
                rewrite_youtube: "invidious.xxxxxx.com",
                rewrite_twitter: "nitter.xxxxxx.com"
        }
}

I forgot to add it's behind a reverse proxy and the configuration is similar to https://git.sr.ht/~cadence/bibliogram-docs/tree/master/item/docs/HTTP%20headers.md and https://git.sr.ht/~cadence/bibliogram-docs/tree/master/item/docs/Installing%20%28extended%29.md

#29 Error 500 when loading a profile 8 months ago

Ticket created by ~rderensy on ~cadence/bibliogram-issues

Hi,

I get this error when I try to visit a profile from an instance hosted on my home server (so no cloud blocking such as https://todo.sr.ht/~cadence/bibliogram-issues/27 ), the curl requests works so the instance isn't blocked.

           ◸―――――――――――――――――――――――――――――――――――――◹
     ···<  |        500. That's an error.        |  >···
           ◺―――――――――――――――――――――――――――――――――――――◿


 ╱  Are you visiting this website? Not sure what's going on?  ╲
 ╲             You might want to come back later.             ╱



FetchError: invalid json response body at https://www.instagram.com/graphql/query/?query_hash=e769aa130647d2354c40ea6a439bfc08&variables=%7B%22id%22%3A%223681568%22%2C%22first%22%3A12%2C%22after%22%3A%22%22%7D reason: Unexpected end of JSON input
    at /opt/bibliogram-updater/bibliogram/node_modules/node-fetch/lib/index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async /opt/bibliogram-updater/bibliogram/src/lib/collectors.js:258:38
    at async Object.code (/opt/bibliogram-updater/bibliogram/src/site/api/routes.js:104:31)

When a profile randomly loads, it loads the first page but the second page gets (in one line, I formatted it so it's readable):

◸―――――――――――――――――――――――――――――――――――――◹ ···< | 500. That's an error. | >··· ◺―――――――――――――――――――――――――――――――――――――◿
╱ Are you visiting this website? Not sure what's going on? ╲ ╲ You might want to come back later. ╱
FetchError: invalid json response body at https://www.instagram.com/graphql/query/?query_hash=e769aa130647d2354c40ea6a439bfc08&variables=%7B%22id%22%3A%22528817151%22%2C%22first%22%3A12%2C%22after%22%3A%22QVFDRU03WEFJNmtLS0xWeHdLaEEzbUllRDZndGFmRGJzbzZOT0N0UmZiMEVtNUd6aGdYN3hETjV2QW90VVFuWnhYQzFlRzR5TmI1X0l3dFA2TS1DWHQyZQ%3D%3D%22%7D reason: Unexpected end of JSON input 
    at /opt/bibliogram-updater/bibliogram/node_modules/node-fetch/lib/index.js:272:32 at runMicrotasks ()
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Timeline.fetchUpToPage (/opt/bibliogram-updater/bibliogram/src/lib/structures/Timeline.js:58:19)
    at async Object.code (/opt/bibliogram-updater/bibliogram/src/site/api/routes.js:202:24)

Everything is up to date, I tried rebooting to clear the cache and whatnot but it doesn't work.