Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Survey answers filter not work #2467

Open
1 of 2 tasks
afcasasfranco opened this issue Apr 18, 2024 · 7 comments
Open
1 of 2 tasks

[BUG] Survey answers filter not work #2467

afcasasfranco opened this issue Apr 18, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@afcasasfranco
Copy link

Issue Summary

Filter not work and go to Error by role or not exist

I try to use the filter function.

Screenshot 2024-04-17 at 10 33 33 PM

And when try to to select Search option show me.

  • Error loading resources
  • This resource doesn't exist or you don't have the neccessary rights to access it.
Screenshot 2024-04-17 at 10 35 33 PM

Steps to Reproduce

  1. Select any survey
  2. Clicked on Filter
  3. Clickedd on add filter +
  4. Search... Box

Expected behavior

Fix the error or give me a idea how can fix to help community

Other information

No response

Screenshots

Screenshot 2024-04-17 at 10 33 33 PM Screenshot 2024-04-17 at 10 35 33 PM

Environment

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

Desktop (please complete the following information)

- OS: Linux - Docker latest image
@afcasasfranco afcasasfranco added the bug Something isn't working label Apr 18, 2024
Copy link
Contributor

Thank you for opening your first issue! 🙏❤️ One of our team members will review it and get back to you as soon as it possible. 😊

@mattinannt
Copy link
Member

@afcasasfranco Since you are on self-hosted, can you please check the server logs and share the error message that is thrown? :-)

@afcasasfranco
Copy link
Author

Hi @mattinannt

This are the server logs.

`Failed to get teams, redirecting to create-first-team
Could not Email :: SMTP not configured :: You're invited to collaborate on Formbricks!
Error: Failed to find Server Action "ece5bd333cb7d92256b1dac98ef1c69ad7e837a6". This request might be from an older or newer deployment. Original error: Invariant: Couldn't find action module ID from module map.
at ry (/home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:1666)
at /home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:7035
at AsyncLocalStorage.run (node:async_hooks:346:14)
at rm (/home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:6350)
at rq (/home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:18:1255)
at /home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:18:3935
at AsyncLocalStorage.run (node:async_hooks:346:14)
at Object.wrap (/home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:13:16239)
at /home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:18:3825
at AsyncLocalStorage.run (node:async_hooks:346:14)
Error: Failed to find Server Action "ece5bd333cb7d92256b1dac98ef1c69ad7e837a6". This request might be from an older or newer deployment. Original error: Invariant: Couldn't find action module ID from module map.
at ry (/home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:1666)
at /home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:7035
at AsyncLocalStorage.run (node:async_hooks:346:14)
at rm (/home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:6350)
at rq (/home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:18:1255)
at /home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:18:3935
at AsyncLocalStorage.run (node:async_hooks:346:14)
at Object.wrap (/home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:13:16239)
at /home/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:18:3825
at AsyncLocalStorage.run (node:async_hooks:346:14)
Could not Email :: SMTP not configured :: You've got a new team member!
Error: Team not found
at p (/home/nextjs/apps/web/.next/server/app/(app)/environments/[environmentId]/settings/members/page.js:21:10543)
Error: Team not found
at L (/home/nextjs/apps/web/.next/server/app/(app)/environments/[environmentId]/settings/members/page.js:21:22049)
O [AuthorizationError]: Not authorized
at y (/home/nextjs/apps/web/.next/server/chunks/1678.js:1:37272) {
statusCode: 403
}

@formbricks/[email protected] db:migrate:deploy /home/nextjs/packages/database
prisma migrate deploy

Prisma schema loaded from schema.prisma
Datasource "db": PostgreSQL database "formbricks", schema "public" at "192.168.50.250:5432"

70 migrations found in prisma/migrations

No pending migrations to apply.
▲ Next.js 14.1.3

✓ Ready in 77ms

@formbricks/[email protected] db:migrate:deploy /home/nextjs/packages/database
prisma migrate deploy

Prisma schema loaded from schema.prisma
Datasource "db": PostgreSQL database "formbricks", schema "public" at "192.168.50.250:5432"

70 migrations found in prisma/migrations

No pending migrations to apply.
▲ Next.js 14.1.3

✓ Ready in 69ms`

But when make a filter, in this moment, logs not show anything.

Additional i send the console logs.

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) at Function.from (<anonymous>) at H (9822-0183831d87520c3b.js:1:9718) at T (9822-0183831d87520c3b.js:1:8717) at 9822-0183831d87520c3b.js:1:7489 at 9822-0183831d87520c3b.js:1:16046 at Map.forEach (<anonymous>) at 9822-0183831d87520c3b.js:1:16035 at aI (1dd3208c-e5f8207d2ef6f0e0.js:1:72883) at aU (1dd3208c-e5f8207d2ef6f0e0.js:1:72943) at aV (1dd3208c-e5f8207d2ef6f0e0.js:1:73382)

I appreciatte your help.

@jimmy0017
Copy link

This happened to me as well. But i don't have any server side error log.

I have the following as JS log:

9997-855a7025e8810cc0.js:1 TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at Function.from (<anonymous>)
    at H (9822-0183831d87520c3b.js:1:9718)
    at T (9822-0183831d87520c3b.js:1:8717)
    at 9822-0183831d87520c3b.js:1:7489
    at 9822-0183831d87520c3b.js:1:16046
    at Map.forEach (<anonymous>)
    at 9822-0183831d87520c3b.js:1:16035
    at aI (1dd3208c-e5f8207d2ef6f0e0.js:1:72883)
    at aU (1dd3208c-e5f8207d2ef6f0e0.js:1:72943)
    at aV (1dd3208c-e5f8207d2ef6f0e0.js:1:73382)
window.console.error	@	9997-855a7025e8810cc0.js:1

@mattinannt
Copy link
Member

@gupta-piyush19 can you please take a look at this and check whats going on / if you can reproduce the issue?

@jimmy0017 @afcasasfranco we are also releasing a new version of Formbricks in the next few days. Maybe the issue was already solved in the latest main branch :-)

@gupta-piyush19
Copy link
Contributor

Thanks, @afcasasfranco and @jimmy0017, for the issue and the required context.
We've already fixed this issue on the main branch. The error is because of the breaking changes recently introduced in the cmdk package(which is used by the shadcn's combobox dropdown); you'd be able to use it after the formbricks 2.0 release. I am unsure if there is any other quick fix for self-hosted users.
cc: @mattinannt

Bugfix PR: #2249
Issue in cmdk-based combobox: shadcn-ui/ui#2944

@jimmy0017
Copy link

I believe this is fixed in my environment with 2.0 release. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants