cal.diy icon indicating copy to clipboard operation
cal.diy copied to clipboard

[CAL-3995] Error Could not book the meeting. Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Open joseuo94 opened this issue 2 years ago • 40 comments

A lot of customers reaching out with this issue.

It still creates the booking on Cal.com but does not send the confirmation email

if we open the booking at https://app.cal.com/bookings/upcoming it says the Conferencing link is in the confirmation email

image.png

Could not book the meeting. Unexpected token '<', "<!DOCTYPE "... is not valid JSON

image.png

image.png

From SyncLinear.com | CAL-3995

joseuo94 avatar Jul 03 '24 13:07 joseuo94

Isn't this realted to https://github.com/calcom/cal.com/issues/15644?

fabio0296 avatar Jul 03 '24 20:07 fabio0296

@fabio0296 can you please explain me the error more better. I am trying to solve this issue but i cannot produce the error.

prynsh avatar Jul 04 '24 09:07 prynsh

@prynsh In my case this happens, when there is a booking page for a group event (in my case it's a round robin). When all required fields a re filled, and the button Confirm is clicked, it takes around 20-30 seconds of loading, and finally the error presented above is displayed, and no redirection is performed. However, the event seems to be created - I can see on the admin panel, and in the calendar (both organiser and atendee). But no workflow is being triggered, effectively no email and SMS in my case is not being sent.

@fabio0296 yes that the same issue

Please let me know guys when the fix is ready, our sale team is suffering a lot, they are literally blocked for two last days. All integrations (CRM, Communication, ERP) is dead when the cal.com doesnt work as supposed to.

yalla-habibi avatar Jul 04 '24 10:07 yalla-habibi

@yalla-habibi I am still unable to understand. I am attaching the pictures below for your reference. Also when I book I see none of the HTML instead there is an event made and I see a success message saying that the said event was created. This is the image of the dashboard

image Next when going to the bookings page, I do not see any bookings.

image

prynsh avatar Jul 05 '24 14:07 prynsh

@yalla-habibi could you send me the event type where this happens? Having a bit of an issue replicating so it's probably due to a setting of sorts.

emrysal avatar Jul 08 '24 09:07 emrysal

I Book But i see none of the html Tag instead of successfully message

raza001 avatar Jul 08 '24 09:07 raza001

@emrysal @raza001 @prynsh Please find above a screenshare. @emrysal it's as I outlined above, it's a group event with round robin algorithm

yalla-habibi avatar Jul 08 '24 09:07 yalla-habibi

https://github.com/calcom/cal.com/assets/25034260/a7fc2a47-ee99-4cc5-800a-e911e161e163

yalla-habibi avatar Jul 08 '24 09:07 yalla-habibi

Can you all check if you have any CRM apps enabled for that event? If yes, try disabling it and check again. I think this is a due to a faulty app that's enabled for that event

milospuac avatar Jul 08 '24 14:07 milospuac

Yes, I believe the same because when I was doing it locally I faced no errors and was redirected to confirmation page.

prynsh avatar Jul 08 '24 15:07 prynsh

Same here

On Mon, 8 Jul 2024, 20:56 Priyansh Verma, @.***> wrote:

Yes, I believe the same because when I was doing it locally I faced no errors and was redirected to confirmation page.

— Reply to this email directly, view it on GitHub https://github.com/calcom/cal.com/issues/15655#issuecomment-2214441337, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALPDJBE3B6IJDGCPPRRANYTZLKVTLAVCNFSM6AAAAABKJUR226VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGQ2DCMZTG4 . You are receiving this because you were mentioned.Message ID: <calcom/cal. @.***>

raza001 avatar Jul 08 '24 15:07 raza001

Same here, couldn't reproduce the issue on my local

fabio0296 avatar Jul 08 '24 19:07 fabio0296

@yalla-habibi guys can you check it on web application and not local? use link:

https://cal.com/team/pricer/badanie-rynku-lokalnego

@milospuac thank for this lead, but I have no applications enabled: image

(however I did try 2 months ago to enable pipedrive CRM, but at this moment it is not installed )

yalla-habibi avatar Jul 08 '24 20:07 yalla-habibi

Guys could you take a look if it's anyhow connected with the issue? It keeps on appearing when I close the settings of the event: image It didnt use to be a case before the error. EDIT: Let me clarify, that ofc there are users assigned to be orginasisers: image

yalla-habibi avatar Jul 08 '24 20:07 yalla-habibi

@fabio0296 @raza001 @prynsh @bdzb @emrysal @milospuac any updates on this? We are suffering with the bug for more than 7 working days, this is killing our automated sales process

yalla-habibi avatar Jul 09 '24 09:07 yalla-habibi

@yalla-habibi We've diagnosed this issue down to slow execution time, some kind of configuration or external connection causes a long time for the function to execute - when this exceeds 1 minute CloudFlare cuts it off, and returns a "timeout" error. We haven't yet figured out why you guys have this issue (CRM connection, something else?) - and this is hard to investigate as the code is cut-off mid execution, we can see no errors as a result.

emrysal avatar Jul 17 '24 14:07 emrysal

@emrysal so what is the status? As for the moment, the error has disappeared however I understand that it's not due to your work, what makes me feel like it's not a very stable situation for us, am I correct?

yalla-habibi avatar Jul 17 '24 19:07 yalla-habibi

Seeing this issue again image

piannaf avatar Jul 26 '24 15:07 piannaf

@emrysal found the issue, see below

I can confirm the same issue. It has little to do with Cloudflare; it just cuts the process that hangs up.

CAL_SIGNATURE_TOKEN Is missing a var in .env

and then

it gives in background "no_available_users_found_error" after second try on timeout

Aside from usual Json error you get this one If you click confirm again

image (2)

subwaysurety avatar Jul 26 '24 15:07 subwaysurety

We are running cal.com in a docker container. There is no documentation for this environment variable: https://github.com/calcom/docker

Cluster2a avatar Jul 31 '24 08:07 Cluster2a