Forum

Browse topics, discover Works With Legrand community!

c2c error

I followed the tutorial. But when I try to send the “Add a subscription to events for a plant” post but

Before the autorizzation of my form I received “Bad Request” error.

After autorizzation I receive “Unauthorized”

my server is node express istance https with self signed certificate and reponse at get command from url comunicated in the form

Bye

Sandro

 

Hi Sandro,

Can you verify you use the correct PlantID and that the access_token used in the header is correct too ?

Have a good day,

Leslie – Community Manager

Now it’s ok but I don’t receive notifications

What kind of calls are made by C2C?

Post? Get?

Could you check what errors have in your logs?

Bye

Sandro

 

Hi Sandro,

After checking the logs, you seem to have a certificate error on the endpoint you use : {“error”:”certificate has expired”}

Fixing it should resolve your C2C issue

Have a good day,

Leslie – Community Manager

"certificato"

Updated but I don’t receive notification

 

Hi,

It’s a self-signed certificate. For security reasons we don’t allow that kind of certificate (I will specify it on the tutorial)

You need a certificate provided by AWS or Azure for example

Have a good day,

Leslie – Community Manager

I created a Let’s Encrypt certificate. And it works for normal get calls

No notifications

"certificato1"

 

"certificato"

I tested with postman the POST inizial request and my server asnwer right as per you tutorial

"certificato2"

We don’t see any publication on your endpoint since this morning at 9:43AM

Did you triggered an event ? Like “scene launch” for example

Now it work’s

Thank you so much

Sandro

 

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘c2c error’ is closed to new replies.

Information

watch_later 1 month ago
message9 replies
people2 participants