Failed to deploy with Webchat
# 🤝help
e
So I'm using the SDK and every time I try to deploy with Webchat I get this error. I dont get this error deploying with any other integration. Someone could help me out ? Because otherwise, every time I deploy, the Webchat gets erased so I have to configure everything again in the UI. It would be ideal if you could point me in the direction where I not only dont get this error but actually I can deploy with all the configuration of the integration already applied. thanks! https://cdn.discordapp.com/attachments/1239618711795667088/1239618712219287593/Screenshot_2024-05-13_at_18.39.34.png?ex=66439463&is=664242e3&hm=d9dbafcce4536850e9c89ab60c3e463c3339a579792445e8f530628f779be52e&
w
If your use Replit webste to execute your code you can see errors and solve them. You can also write with AI your code
a
hey @early-boots-14521 can you copy and paste the error ID please ?
e
of course ● Error: An unexpected error occurred when trying to process your request. (Error ID: err_20240513175750xD9006034)
a
Ok, the webchat integration is weird because it currently does some setting up behind your back with a lot of hardcoded logic... I'm not 100% sure this will work, but can you try providing an empty configuration ? Like:
Copy code
new bp.webchat.Webchat({
  enabled: true,
  config: {
    messagingUrl: '',
    adminKey: '',
    clientId: '',
    clientToken: '',
  }
})
something like that ?
e
YEP! That worked
just one more thing.. so, regarding integrating the React Library, where could I find the CliendId of my bot ?
a
its your webchat webhook id
when you deployed with the CLI you probably say a webhook URL for webchat ?
show me your logs
e
okey got it!
yes
a
keep only the path param
e
and is there a way to actually deploy with the configuration set up (for webchat or any other integration for that matter) like the stuff you would put there https://cdn.discordapp.com/attachments/1239618711795667088/1239643879045599273/Screenshot_2024-05-13_at_20.21.45.png?ex=6643abd4&is=66425a54&hm=b52cbad4bd0461cd2ecef7dfdb76ce9da1db343e0024d1a8a3bb2897e4e564d9&
new bp.webchat.Webchat({ enabled: true, config: { ...settings messagingUrl: '', adminKey: '', clientId: '', clientToken: '', } })
or something
new Bot({ .. where do the configuration variables go .. )
a
short answer is maybe, but its hackish
dm for more
lol
e
😎
11 Views