zeehasham
zeehasham
TTypebot
Created by zeehasham on 2/27/2024 in #help-and-questions
Custom image issues
I created my image but it seems to be giving errors on builder and viewer side but my non containerized code seems to be fine and working. I used the same dockerfile that is shared in the main repo. Builder side: Error: Cannot find module '/app/apps/builder/server.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } On viewer side: Error: Cannot find module '/app/apps/viewer/server.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.19.1 - 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'. node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module '/app/apps/viewer/server.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] }
11 replies
TTypebot
Created by zeehasham on 2/17/2024 in #help-and-questions
CI on git commit
I see that there is a sanity test that runs on each git commit even in local. How to turn off this functionality temporarily ?
3 replies
TTypebot
Created by zeehasham on 2/11/2024 in #help-and-questions
Containers not showing latest changes
I have added a new block and changes are not being shown in the UI, I suspect my changes are not reflected in the container because I do not see the complete folder structure inside apps/src. Also what is the purpose of yaml file named docker-compose.build.yml do we need to run it at any stage ?
11 replies
TTypebot
Created by zeehasham on 1/31/2024 in #help-and-questions
Getting errors on viewer side
No description
15 replies
TTypebot
Created by zeehasham on 1/28/2024 in #help-and-questions
Unable to sign in
When I try to sign in using github I get an error below, I am trying self hosting with Dockers. It seems that its trying to redirect to localhost. My .env seems to be fine. Can someone guide what I am missing. When I try to login using google it throws an error that application does not meets the requirements of OAuth2.0.
# Make sure to change this to your own random string of 32 characters (https://docs.typebot.io/self-hosting/docker#2-add-the-required-configuration)
ENCRYPTION_SECRET=<my key here>

DATABASE_URL=postgresql://postgres:typebot@typebot_typebot-db_1:5432/typebot

NEXTAUTH_URL=http://146.190.35.191:8080
NEXT_PUBLIC_VIEWER_URL=http://146.190.35.191:8081

GITHUB_CLIENT_ID=<id here>
GITHUB_CLIENT_SECRET=<my secret here>

S3_ACCESS_KEY=minio
S3_SECRET_KEY=minio123
S3_BUCKET=typebot
S3_PORT=9000
S3_ENDPOINT=localhost
S3_SSL=false
# Make sure to change this to your own random string of 32 characters (https://docs.typebot.io/self-hosting/docker#2-add-the-required-configuration)
ENCRYPTION_SECRET=<my key here>

DATABASE_URL=postgresql://postgres:typebot@typebot_typebot-db_1:5432/typebot

NEXTAUTH_URL=http://146.190.35.191:8080
NEXT_PUBLIC_VIEWER_URL=http://146.190.35.191:8081

GITHUB_CLIENT_ID=<id here>
GITHUB_CLIENT_SECRET=<my secret here>

S3_ACCESS_KEY=minio
S3_SECRET_KEY=minio123
S3_BUCKET=typebot
S3_PORT=9000
S3_ENDPOINT=localhost
S3_SSL=false
http://localhost:3000/api/auth/callback/github?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-r
http://localhost:3000/api/auth/callback/github?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-r
7 replies
TTypebot
Created by zeehasham on 1/23/2024 in #help-and-questions
Issue with new integration
No description
3 replies
TTypebot
Created by zeehasham on 12/22/2023 in #help-and-questions
Help with google calendar integration
I am working to integrate google calendar i have made the integration using forge also i have made the backend like O auth callback handler to login user via google account but in forge it doesn't let me use client side code like its new technology mostly server side is allowed, so things like redirection to google page for login account is very difficult. Can you guide me. Thanks
3 replies
TTypebot
Created by zeehasham on 12/11/2023 in #help-and-questions
Getting error on enum
No description
3 replies
TTypebot
Created by zeehasham on 12/11/2023 in #help-and-questions
Adding new feature to the typebot...
Hello I am trying to contribute to the typebot by extending its functionality to google calendar. After I have added the code, do I need to run pnpm dev everytime or I can restart the docker containers using docker-compose ? What is the best practice.
4 replies