Contentful issues when deploy

Hello, i have an error 500 when i try to get content from my cms contentful. all env var are working good. also my project working good on local.
import contentful from 'contentful';
import { CONTENTFUL_SPACE_ID, CONTENTFUL_ACCESS_TOKEN } from '$env/static/private';

export const client = contentful.createClient({
// This is the space ID. A space is like a project folder in Contentful terms
space: CONTENTFUL_SPACE_ID,
// This is the access token for this space. Normally you get both ID and the token in the Contentful web app
accessToken: CONTENTFUL_ACCESS_TOKEN
});
import contentful from 'contentful';
import { CONTENTFUL_SPACE_ID, CONTENTFUL_ACCESS_TOKEN } from '$env/static/private';

export const client = contentful.createClient({
// This is the space ID. A space is like a project folder in Contentful terms
space: CONTENTFUL_SPACE_ID,
// This is the access token for this space. Normally you get both ID and the token in the Contentful web app
accessToken: CONTENTFUL_ACCESS_TOKEN
});
`` also i'm using sveltekit
8 Replies
Chaika
Chaika5mo ago
A worker threw exception or what exactly? Sounds like you're using Pages? #pages-help I would tail and see what the request does
destroyerman
destroyermanOP5mo ago
No description
Chaika
Chaika5mo ago
navigate to that url directly or use dev tools to see the exact response html
destroyerman
destroyermanOP5mo ago
it's internal error idk what is invalidated
Chaika
Chaika5mo ago
using query parameters to get around cache/invalidate it is a common thing I would tail your function then
destroyerman
destroyermanOP5mo ago
yea i think it's a problem on sveltekit because it's sveltekit-unvalidated
Chaika
Chaika5mo ago
?pages-logs
Flare
Flare5mo ago
If you're looking to tail a Pages Function you can do so in the UI here: https://dash.cloudflare.com?to=/:account/pages/view/:pages-project/:pages-deployment/functions or with Wrangler: wrangler pages deployment tail [deploymentId/url]
Want results from more Discord servers?
Add your server