typebot.io icon indicating copy to clipboard operation
typebot.io copied to clipboard

Unable to Create a Typebot: Error Shown on Main Page

Open simpsss opened this issue 1 year ago • 4 comments

Describe the bug When I click on "Create a Typebot" on the main page, an error occurs, as shown in the attached screenshots. This prevents the creation of a new Typebot and disrupts the workflow.

To Reproduce Steps to reproduce the behavior:

  1. Go to the main page of Typebot.
  2. Click on the "Create a Typebot" button.
  3. See error

Expected behavior I expected to be able to create a new Typebot without encountering any error messages, and for the process to complete smoothly.

Screen recording image image image

simpsss avatar Nov 01 '24 21:11 simpsss

Can you provide the server logs? There should be a clear error there.

If you are self-hosting it with docker. Type this command in your terminal:

docker-compose logs

Paste all the logs here so that we can help you properly!

baptisteArno avatar Nov 05 '24 22:11 baptisteArno

root@sp ~ ✔ # docker logs typebot_typebot_builder.1.rea0qgczhgbqmq1u4zvs9fdjv

  • event [next-runtime-env] read environment variables prefixed with 'NEXT_PUBLIC_' from process.env.
  • ready [next-runtime-env] wrote browser runtime environment variables to '/app/apps/builder/public/__ENV.js'. Prisma schema loaded from packages/prisma/postgresql/schema.prisma Datasource "db": PostgreSQL database "typebot", schema "public" at "postgres:5432"

68 migrations found in prisma/migrations

No pending migrations to apply. â–² Next.js 14.2.13

  • Local: http://localhost:3000
  • Network: http://0.0.0.0:3000

✓ Starting... ✓ Ready in 2.9s


root@sp ~ ✔ # docker logs typebot_typebot_viewer.1.s11a14i1nldv3wle6jr27yr8j

  • event [next-runtime-env] read environment variables prefixed with 'NEXT_PUBLIC_' from process.env.
  • ready [next-runtime-env] wrote browser runtime environment variables to '/app/apps/viewer/public/__ENV.js'. â–² Next.js 14.2.13
    • Local: http://localhost:3000
    • Network: http://0.0.0.0:3000

✓ Starting... ✓ Ready in 966ms

simpsss avatar Nov 05 '24 23:11 simpsss

Is that all? 🤔

I don't really know what's happening then...

baptisteArno avatar Nov 10 '24 19:11 baptisteArno

my docker-compose.yml:

version: "3.7" services:

typebot_builder: image: baptistearno/typebot-builder:latest networks: - XXXXXXXXX environment: - DATABASE_URL=postgresql://postgres:<REDACTED>@postgres:5432/typebot - ENCRYPTION_SECRET=<REDACTED> - DEFAULT_WORKSPACE_PLAN=UNLIMITED - NEXTAUTH_URL=https://XXXXXXXXXX - NEXT_PUBLIC_VIEWER_URL=https://XXXXXXXXXX - NEXTAUTH_URL_INTERNAL=http://localhost:3000 - DISABLE_SIGNUP=false - ADMIN_EMAIL=XXXXXXXXXX - NEXT_PUBLIC_SMTP_FROM='Suporte' <XXXXXXXXXX> - SMTP_AUTH_DISABLED=false - SMTP_USERNAME=XXXXXXXXXX - SMTP_PASSWORD=<REDACTED> - SMTP_HOST=smtp.office365.com - SMTP_PORT=587 - SMTP_SECURE=false - S3_ACCESS_KEY=<REDACTED> - S3_SECRET_KEY=<REDACTED> - S3_BUCKET=typebot - S3_ENDPOINT=s3.XXXXXXXXXX deploy: mode: replicated replicas: 1 placement: constraints: - node.role == manager resources: limits: cpus: "1" memory: 1024M labels: - io.portainer.accesscontrol.users=admin - traefik.enable=true - traefik.http.routers.typebot_builder.rule=Host(XXXXXXXXXX) - traefik.http.routers.typebot_builder.entrypoints=websecure - traefik.http.routers.typebot_builder.tls.certresolver=letsencryptresolver - traefik.http.services.typebot_builder.loadbalancer.server.port=3000 - traefik.http.services.typebot_builder.loadbalancer.passHostHeader=true - traefik.http.routers.typebot_builder.service=typebot_builder

typebot_viewer: image: baptistearno/typebot-viewer:latest networks: - XXXXXXXXX environment: - DATABASE_URL=postgresql://postgres:<REDACTED>@postgres:5432/typebot - ENCRYPTION_SECRET=<REDACTED> - DEFAULT_WORKSPACE_PLAN=UNLIMITED - NEXTAUTH_URL=https://XXXXXXXXXX - NEXT_PUBLIC_VIEWER_URL=https://XXXXXXXXXX - NEXTAUTH_URL_INTERNAL=http://localhost:3000 - DISABLE_SIGNUP=false - ADMIN_EMAIL=XXXXXXXXXX - NEXT_PUBLIC_SMTP_FROM='Suporte' <XXXXXXXXXX> - SMTP_AUTH_DISABLED=false - SMTP_USERNAME=XXXXXXXXXX - SMTP_PASSWORD=<REDACTED> - SMTP_HOST=smtp.office365.com - SMTP_PORT=587 - SMTP_SECURE=false - S3_ACCESS_KEY=<REDACTED> - S3_SECRET_KEY=<REDACTED> - S3_BUCKET=typebot - S3_ENDPOINT=s3.XXXXXXXXXX deploy: mode: replicated replicas: 1 placement: constraints: - node.role == manager resources: limits: cpus: "1" memory: 1024M labels: - io.portainer.accesscontrol.users=admin - traefik.enable=true - traefik.http.routers.typebot_viewer.rule=Host(XXXXXXXXXX) - traefik.http.routers.typebot_viewer.entrypoints=websecure - traefik.http.routers.typebot_viewer.tls.certresolver=letsencryptresolver - traefik.http.services.typebot_viewer.loadbalancer.server.port=3000 - traefik.http.services.typebot_viewer.loadbalancer.passHostHeader=true - traefik.http.routers.typebot_viewer.service=typebot_viewer

networks: XXXXXXXXXX: external: true name: XXXXXXXXXXXX

simpsss avatar Nov 10 '24 20:11 simpsss