开发者

Nextjs SSR data fetching error, returning UNICODE

Good day everyone, I am building a project using React Tsx, Nextjs, Prisma and Swagger.

Problem : part of api fetched data is returned as unicode, whereas other data in the same api is fetched with no issues. Plus, the problematic data should be an array, but returned as string unicode.

Tests I've tried :

  1. When yarn build and yarn start- checked Network tab and fetches all data perfectly fine.
  2. When check localhost's swagger- all data fetched with no issues.
  3. When checked dev domain's swagger- all data fetched with no issues.
  4. When checked dev domain's website - partial api fetched data is returned as string unicode instead of an array I've been searching for an answer or similar situations, but wasn't successful. Could you please help me out if you've experienced a similar issue? Or give me an idea what to look for? I really am lost atm :(

Thanks in a开发者_StackOverflow中文版dvance, cheers!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜