-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Sending Webhooks #11
Comments
I'm unable to reproduce this with your provided code. |
Yeah i received your ping. |
To test Ive manually created a webhook without this api and yet i still get this issue. Damn |
Potentially this is an issue with your dependencies which somehow conflict with the JSON library? |
You could be right, created a new project with only just the spring-boot-starter and the discord-webhooks dependancies without the any other dependancies. Webhooks now pass. |
This library uses |
Jackson shouldn't conflict with org.json though. More likely some of your other dependencies relies on a different version of org.json |
After hours of combination and errors, not able to identify the actual issue. But found the cause of issue.
Addin this to the pom causes the issue, deleting this from the pom and webhook passes. Can u reproduce the issue based on this? |
I don't use maven and have no maven setup but I assume the reason is that maven resolves dependencies on first sight rather than using the latest. The issue might be solved by putting this library as your first dependency. |
Update :
Source : https://github.com/skyscreamer/JSONassert Quick note, this is included in the default https://start.spring.io config. |
It's likely that some dependency causes a different version of the |
Well i think this issue explains it pretty well: spring-projects/spring-boot#8706 TL;DR: |
Then the solution is to exclude this android re-implementation. Closing as resolved. |
Thanks for the explanation @kantenkugel |
Version :
Environment:
Java 8 with SpringBoot
Code:
Error:
The text was updated successfully, but these errors were encountered: