How to resolve this issue "Cannot deserialize value of type `long` from String \"1970-01-01T00:00:0"

Hi,

I have an API integration that is used to post blog posts. It was working well. But recently I received the following message while publishing a blog post.

Cannot deserialize value of type `long` from String \“1970-01-01T00:00:00Z\”: not a valid `long` value",

The same input was working 2 days ago. Not sure what happened.

I am passing the value 1970-01-01T00:00:00Z under the deletedAt object since it is mandatory to pass this value.

Can someone please help?

Thanks in advance.

Hey, @ATonmoy :waving_hand: I’m happy to run a quick test from the documentation example. One question, have you tested other dates while using the same format? 2022-07-31T06:00:00.000Z as one random example

Best,

Jaycee

Hi Jaycee,

Thank you very much for replying so quickly. I have tested with current dates and I just ran another one with the date format you shared. It still failed.

I can share the “correlationId” with you if that helps.

-Best,

Adnan Tonmoy
Solutions Consultant @Optimizely

Hi @Jaycee_Lewis , Could you please see my reply below and suggest the next step forward? This integration is being used by one of our clients and right now their publishing is blocked. The integration is built with tray.io using HibSpot’s open api.

Let me know if you need more information.

-Best,

Adnan Tonmoy
Solutions Consultant @Optimizely