You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
luigiafassina
4 years agoExplorer | Level 4
Webhook notification with wrong header
I'm using dropbox sdk java 4.0.1. I've configured my webhook url (in the app console) for receiving notification on my server. It works but I receive these headers in the notification: host my.ma...
- 4 years ago
There doesn't appear to be anything wrong in these lines, but it's possible the header name is getting corrupted elsewhere in the stack, before the value gets to your code.
Greg-DB
4 years agoDropbox Staff
That header name "X- ropbox-Signature" does look incorrect; it should be "X-Dropbox-Signature". I just tried this myself though, setting up a server to receive Dropbox webhook notifications, and I am receiving the correct "X-Dropbox-Signature" header name, not "X- ropbox-Signature", so there may be something on your webhook URI server corrupting that on the receiving side.
How are you receiving these webhook notifications, and how are you printing out the headers? (The version of the Dropbox Java SDK you're using wouldn't be relevant as that SDK doesn't handle the receipt of webhook notifications; that would be done by your web framework.)
- luigiafassina4 years agoExplorer | Level 4
I set the Webhook URI in the App Console. Then my server receives the request and I print it as
Collections.list(request.getHeaderNames()).stream().forEach(h -> log.info(h + " (" + request.getHeader(h) + ")"));
but also reading as
String signature = request.getHeader("X-Dropbox-Signature");
is empty.
I'm going to check my code but a part this I should do nothing before...
- Greg-DB4 years agoDropbox Staff
There doesn't appear to be anything wrong in these lines, but it's possible the header name is getting corrupted elsewhere in the stack, before the value gets to your code.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 17 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!