Ticket: Error Linking Social Accounts: Unexpected Token JSON Parse
@Spleenix Just created a ticket
Question: I am trying to link accounts from LinkedIn, Facebook and Instagram. When I try to link them, the error is always thrown when I redirect back to postiz: Application error: a server-side exception has occurred (see the server logs for more information). Digest: 4057080649 In the console: postiz | SyntaxError: Unexpected token '<', “<!DOCTYPE ”... is not valid JSON postiz | at JSON.parse (<anonymous>) postiz | at parseJSONFromBytes (node:internal/deps/undici/undici:5472:19) postiz | at successSteps (node:internal/deps/undici/undici:5454:27) postiz | at fullyReadBody (node:internal/deps/undici/undici:4381:9) postiz | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) postiz | at async consumeBody (node:internal/deps/undici/undici:5463:7) postiz | at async is (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:27386) { postiz | digest: '4057080649' postiz | } I'm running docker compose on localhost using nginx for domain redirect and https)
Attempted: Checked Provider APIs
Working On: Adding Accounts
Take it from here @Postiz
Question: I am trying to link accounts from LinkedIn, Facebook and Instagram. When I try to link them, the error is always thrown when I redirect back to postiz: Application error: a server-side exception has occurred (see the server logs for more information). Digest: 4057080649 In the console: postiz | SyntaxError: Unexpected token '<', “<!DOCTYPE ”... is not valid JSON postiz | at JSON.parse (<anonymous>) postiz | at parseJSONFromBytes (node:internal/deps/undici/undici:5472:19) postiz | at successSteps (node:internal/deps/undici/undici:5454:27) postiz | at fullyReadBody (node:internal/deps/undici/undici:4381:9) postiz | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) postiz | at async consumeBody (node:internal/deps/undici/undici:5463:7) postiz | at async is (/app/dist/apps/frontend/.next/server/app/(site)/integrations/social/[provider]/continue/page.js:3:27386) { postiz | digest: '4057080649' postiz | } I'm running docker compose on localhost using nginx for domain redirect and https)
Attempted: Checked Provider APIs
Working On: Adding Accounts
Take it from here @Postiz
7 Replies
@Spleenix
Please drop in your .env
@Spleenix , could you also go to your browser console, and select the "response" on the network request, and take a screenshot of that? It looks like either Postiz or the Meta API is giving us a page when we are expecting JSON
Using docker-compose file for env
@Spleenix very good, you see from that screenshot, what under the "Response" tab, next to headers?
Oh actually I see it
Okay, give me some time to try and reproduce this
@Postiz please help @Spleenix
Anything new? :)