question

Corey avatar image
Corey asked Corey answered

Webhooks work in test env but not in production environment.

I have my web app deployed in a kubernetes cluster and Webhooks seem to be working properly in the test env or the cluster. But when we respond to webhooks in our production env. we get an error. Can anyone shed light as to what the problem might be?

Thanks,

Corey



2022-07-18 12:44:27
2022-07-18 05:44:27 info: production
2022-07-18 12:44:27
2022-07-18 05:44:27 info: production
2022-07-18 12:44:27
2022-07-18 05:44:27 warn: webhook(3ZJW9YCDFN641:ee6b3374-cf47-9af3-3ecc-f53291ae00ff) -> Error occurred while process event data, caused by -- TypeError: Cannot read properties of undefined (reading 'length')
2022-07-18 12:44:26
2022-07-18 05:44:26 info: backoff(3ZJW9YCDFN641) -> { merchantId: 3ZJW9YCDFN641, webhook: {"_id":"62d48558fe5c6e3e7435ec6c","event_id":"QP5HA7EBZ95HR","event_object":"O","event_ts":1658094935075,"event_type":"UPDATE","merchant_id":"3ZJW9YCDFN641","__v":0,"event_status":"PENDING","event_status_comment":"System could not process to retrieve data from Clover API properly!","event_status_time":1658114906098} }
2022-07-18 12:44:26
2022-07-18 05:44:26 info: webhook(CVPCY57R08WN1) -> { appId: 75DY65YX31M9C, merchantId: CVPCY57R08WN1, webhook: {"merchant_id":"CVPCY57R08WN1","event_object":"O","event_id":"FAF7TFXYC47WP","event_type":"UPDATE","event_ts":1658123065334} }
Webhooks
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

siriustech avatar image
siriustech answered Corey commented

Code snippet would be helpful

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Corey avatar image Corey commented ·

There is no code snippet to show. I need someone from Clover to look in their logs and tell us what error they are receiving. The error message that I get is too generic.

Thanks,

Corey

0 Likes 0 ·
Corey avatar image
Corey answered

I guess there are no more Clover Employees in the forum. Is it just me or does anyone else feel like Clover Development Relations despise 3rd Party Developer?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community