Hi Adobe I/O team,
I'm following your introduction to Adobe I/O Events Webhooks guide as I want to trigger a webhook call on certain events. However, every time I try to enable consent, as described here: https://github.com/AdobeDocs/adobeio-events/blob/stage/intro/webhooks_intro.md#receiving-events, I get the following error in postman: Invalid protocol: adobe+MY_CLIENT_ID. Any help would be greatly appreciated, since I'm a bit lost!
Rafael
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @rgala,
If you are trying the below consent request, make sure to do the following:
Views
Replies
Total Likes
Hi Shikhartanwar,
Let me clarify that I'm using postman to trigger the consent request (using POST). Yes, I replaced api_key_from_console with my client-id. However, the result is still the same: I keep getting an invalid protocol error message in Postman. I followed your trick to add scopes to my client-id, but it did not change the outcome. Is there something I'm missing or am I doing something wrong? Thanks a lot
Views
Replies
Total Likes
Interesting. I am not sure why that is happening then.
Can you share the request you are trying to execute? Also, have you tried once with the browser (maybe Postman is not able to understand the redirects).
Views
Replies
Total Likes
Hi Shikhartanwar,
Since my request contains my clientID, I would like to send it to you via PM. Is that possible? There is no response from the browser (I guess the service expects a POSt instead of a GET).
Views
Replies
Total Likes
No the request works from a browser, so it does expect a HTTP GET.
I am not sure how a PM is possible here. Could you instead create a dummy project mimicking the current project, and share the request for that instead? We can then delete the dummy project.
Views
Replies
Total Likes
This screenshot is from my current project and the request is now a GET instead of a POST
Views
Replies
Total Likes
The screenshot doesn't provide much help in debugging this further. What if you can share a document that only I can view (my adobe email id is stanwar@adobe.com)?
Also, one of my speculation would be that this client-id is not enabled for all types of accounts. How are you logging in after you enter the consent link in the browser?
Views
Replies
Total Likes
It's a pity that the screenshot doesn't help! So far, I haven't found a way to share an Adobe IO project with anyone. Could you please let me know where I can find that option? How can I check if all of the types are enabled in my client-id? Can I check that using an API call? I am using a browser to log in.
Views
Replies
Total Likes
Yes, you can only share projects with people who are added to your respective organization, but I don't think we need to take that route as I may have a better solution to help debug this further.
For that, I will require your event (webhook) registration-id which you can get by following the below steps:
Views
Replies
Total Likes
Hi, thanks for your help once gain! Here's the webhookid
Views
Replies
Total Likes
I think I understand what your problem is.
Are you trying the consent request with a Service Account (JWT) client-id? If yes, then can you try once with an oAuth based client-id.
Views
Replies
Total Likes
Thanks! I gave it a quick try, but I don't have a redirect url. I get an error saying that it cannot find the redirect url when I trigger the consent call. Basically, I want my server to be notified (via using webhook call) when certain events occur, such as uploading files to my creative cloud drive.
Views
Replies
Total Likes
You can try with a generic redirect URL for now, say https://adobe.com, and give your application (client-id) the consent (see screenshot below).
This should be enough for us to forward the events to your application on your behalf.
Views
Replies
Total Likes
My screen is different from yours. Here's what it looks like on my end:
Note, the url shows: https://www.adobe.com/?error=invalid_scope
Views
Replies
Total Likes
This generally comes when your client-id does not have the creative_sdk scope and you request for it in the consent URL. Have you added any APIs in your project?
Could you try this trick and check again?
Views
Replies
Total Likes
That was the prob! Thanks for pointing that out!
But I'm still not receiving any webhook notifications when I trigger my events. If I go to "Debug tracking" I can't see any events. I'm I missing something else?
Views
Replies
Total Likes
The person with which you consented should be the same person who is triggering the events / performing actions on Creative Cloud.
Debug Tracing will show you the events getting delivered.
Views
Replies
Total Likes
That is the case! I'm using my account CC + Adobe IO. Is there a way to debug this?
Views
Replies
Total Likes
I think your event registration is still against the Service Account (JWT) client-id.
Could you try creating an event-registration against the oAuth client-id and then trigger some events?
Views
Replies
Total Likes
It is finally working! That was the "problem"!
To get the webhooks working, you need all these steps...add dummy api, grab oauth clientID, consent, and then add the events you want to receive notifications from via webhook?
Your guide --> https://github.com/AdobeDocs/adobeio-events/blob/stage/intro/webhooks_intro.md#receiving-events seemed pretty straightforward when I first read it, but to get this working is a completely different story! May I suggest that your team update the guide online? Or that you make this process much simpler?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies