Hello, guys I am using Rudderstack as a CDP and s...
# support
g
Hello, guys I am using Rudderstack as a CDP and sending events to Clevertap One of them is presenting an error, which is the "Order Completed". does anyone can help me out saying what is happening and how can I solve that?
g
Hi @great-address-64954, that's a long message. Can you please edit the message and post details in this thread while keeping the original message short enough to just describe the nature of the issue
g
Of course @gentle-petabyte-80785
🙌 1
Here is the payload:
Copy code
{
    "body": {
        "XML": {},
        "FORM": {},
        "JSON": {
            "d": [
                {
                    "type": "event",
                    "evtData": {
                        "Items": "[{\"brand\":\"OI FRANGO\",\"category\":\"Aves Congeladas\",\"coupon\":\"\",\"image_url\":\"https://www.extrabom.com.br/uploads/produtos/350x350/93444_20220518171649_thumb_93444_Coxa_e_Sobrecoxa_de_Frango_com_Dorso_Oi_Frango_1_200kg.png\",\"name\":\"Coxa e Sobrecoxa de Frango com Dorso Oi Frango 1,200Kg\",\"price\":9.9,\"product_id\":\"93444\",\"quantity\":1,\"sku\":\"93444\",\"url\":\"https://www.extrabom.com.br/p/coxa-e-sobrecoxa-de-frango-com-dorso-oi-frango-1-200kg/93444/\"},{\"brand\":\"LAR\",\"category\":\"Perecíveis\",\"coupon\":\"\",\"image_url\":\"https://www.extrabom.com.br/uploads/produtos/350x350/161190_20211211110706_thumb_161190_Empanado_Steak_Frango_Lar_100g.png\",\"name\":\"Empanado Steak Frango Lar 100g\",\"price\":1.79,\"product_id\":\"161190\",\"quantity\":1,\"sku\":\"161190\",\"url\":\"https://www.extrabom.com.br/p/empanado-steak-frango-lar-100g/161190/\"}]",
                        "coupon": "",
                        "channel": "web",
                        "currency": "BRL",
                        "order_id": "459488",
                        "Charged ID": "1274039",
                        "total_value": 13.67,
                        "delivery_type": "Retirada",
                        "shipping_value": 0,
                        "subtotal_value": 13.67,
                        "total_itens_quantity": 2,
                        "average_value_of_items": 5.85,
                        "first_level_unique_categories": 2
                    },
                    "evtName": "Charged",
                    "identity": "88430"
                }
            ]
        },
        "JSON_ARRAY": {}
    },
    "type": "REST",
    "files": {},
    "method": "POST",
    "params": {},
    "userId": "",
    "headers": {
        "Content-Type": "application/json",
        "X-CleverTap-Passcode": "Passcode"",
        "X-CleverTap-Account-Id": "Account-Id"
    },
    "version": "1",
    "endpoint": "https://api.clevertap.com/1/upload"
}
and here is the error:
Copy code
{
  "response": "{\"status\":400,\"message\":\"Request failed  with status: 200\",\"destinationResponse\":{\"response\":{\"status\":\"fail\",\"processed\":0,\"unprocessed\":[{\"status\":\"fail\",\"code\":555,\"error\":\"Error \",\"record\":{\"evtData\":{\"Charged ID\":\"1274039\",\"Items\":\"[{\\\"brand\\\":\\\"OI FRANGO\\\",\\\"category\\\":\\\"Aves Congeladas\\\",\\\"coupon\\\":\\\"\\\",\\\"image_url\\\":\\\"https://www.extrabom.com.br/uploads/produtos/350x350/93444_20220518171649_thumb_93444_Coxa_e_Sobrecoxa_de_Frango_com_Dorso_Oi_Frango_1_200kg.png\\\",\\\"name\\\":\\\"Coxa e Sobrecoxa de Frango com Dorso Oi Frango 1,200Kg\\\",\\\"price\\\":9.9,\\\"product_id\\\":\\\"93444\\\",\\\"quantity\\\":1,\\\"sku\\\":\\\"93444\\\",\\\"url\\\":\\\"https://www.extrabom.com.br/p/coxa-e-sobrecoxa-de-frango-com-dorso-oi-frango-1-200kg/93444/\\\"},{\\\"brand\\\":\\\"LAR\\\",\\\"category\\\":\\\"Perecíveis\\\",\\\"coupon\\\":\\\"\\\",\\\"image_url\\\":\\\"https://www.extrabom.com.br/uploads/produtos/350x350/161190_20211211110706_thumb_161190_Empanado_Steak_Frango_Lar_100g.png\\\",\\\"name\\\":\\\"Empanado Steak Frango Lar 100g\\\",\\\"price\\\":1.79,\\\"product_id\\\":\\\"161190\\\",\\\"quantity\\\":1,\\\"sku\\\":\\\"161190\\\",\\\"url\\\":\\\"https://www.extrabom.com.br/p/empanado-steak-frango-lar-100g/161190/\\\"}]\",\"average_value_of_items\":5.85,\"channel\":\"web\",\"coupon\":\"\",\"currency\":\"BRL\",\"delivery_type\":\"Retirada\",\"first_level_unique_categories\":2,\"order_id\":\"459488\",\"shipping_value\":0,\"subtotal_value\":13.67,\"total_itens_quantity\":2,\"total_value\":13.67},\"evtName\":\"Charged\",\"identity\":\"88430\",\"type\":\"event\"}}]},\"status\":200,\"rudderJobMetadata\":{\"jobId\":30084782,\"attemptNum\":0,\"userId\":\"\",\"sourceId\":\"2IJiQ9jcr5HKpzo1egcLtjtvPJI\",\"destinationId\":\"2MtR6rbeLliac5Ng4mU0NAo37da\",\"workspaceId\":\"2HJu7sIQCiYaLOzF4DysvFtinmY\",\"secret\":null}},\"statTags\":{\"errorCategory\":\"network\",\"errorType\":\"aborted\",\"destType\":\"CLEVERTAP\",\"module\":\"destination\",\"implementation\":\"native\",\"feature\":\"dataDelivery\",\"destinationId\":\"2MtR6rbeLliac5Ng4mU0NAo37da\",\"workspaceId\":\"2HJu7sIQCiYaLOzF4DysvFtinmY\",\"context\":\"[Native Integration Service] Failure During Processor Transform\"}}",
  "firstAttemptedAt": "2023-03-24T18:11:56.290Z",
  "content-type": "application/json"
}
g
Thanks Leonardo for making it easier to review. Please also make sure that you mask any sensitive info (such as api credentials) in the messages you share here on the channel. They are visible to everyone.
I can see in the error message you shared has 555 error code from the destination which Clevertap docs mentions as "Miscellaneous server error". So that doesn't give enough info to check what could have been the issue.
If this was a temporary error in Clevertap API, it might get cleared when RudderStack retries sending this event again
Are you Using CleverTap integration in cloud mode?
g
Hello, @gentle-petabyte-80785 Thanks for alert me about sensitive data, already faded it. I don't believe this is a temporary error once it happened for a while (maybe a month).
And yes, we are using cloud mode for clevertap.
g
Thanks for the confirmation. We are investigating this issue. Will get back to you
f
@great-address-64954 can you share your
Clevertap
account URL?
g
@fierce-crayon-64520 The organization has 2 accounts https://eu1.dashboard.clevertap.com/R7W-597-576Z/main https://eu1.dashboard.clevertap.com/65W-ZR8-576Z/main Both are accusing the same error.
✅ 1
Any update about this issue guys? @fierce-crayon-64520 @gentle-petabyte-80785
g
It is a work in progress. Allow us some more time to get back to you with the resolution.
g
roger that.
f
@great-address-64954 We got the issue. For
Charged
event, we have to send the value of
Items
property as an array of objects but we are sending stringified value. Which is not the same for other events. In other events, if we send anything apart from string they throw an error. So we were stringifying the objects and sending that. We will do a release on coming Tuesday, which will fix the issue.
g
Hello, @fierce-crayon-64520 thanks for the information, looking forward in hearing from you soon.
🙌 1
f
It has been released.