formbricks/formbricks

[BUG] Surveys fail to load after migration to 1.6.1

Closed this issue · 3 comments

Issue Summary

After I pulled the latest docker image and tried to run it, the surveys won't load anymore. In the browser console I get the following error:

Uncaught (in promise) TypeError: cannot read properties of undefined (reading 'length')
image
It seems like the issue is in this line:

if (res.length < surveysLimit) setHasMore(false);

image

Steps to Reproduce

  1. upgrade to 1.6.1 and run migrations
  2. surveys do not load anymore

Expected behavior

no error, surveys visible

Other information

No response

Screenshots

No response

Environment

  • Formbricks Cloud (app.formbricks.com)
  • Self-hosted Formbricks

Desktop (please complete the following information)

v1.6.1

@jonas-hoebenreich thanks for reporting; I will take a look :-)

sorry, I found the issue: I made some terraform changes that unfortunately had the side effect that some headers changed in a way that nextjs could not handle 🙈
Sorry for stealing your time

No worries; still a good point that we maybe should improve the error handling around server actions 😉