Skip to content
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

Not able to execute the cURL command for testing #1

Open
jainjayesh opened this issue Dec 8, 2020 · 1 comment
Open

Not able to execute the cURL command for testing #1

jainjayesh opened this issue Dec 8, 2020 · 1 comment

Comments

@jainjayesh
Copy link

When i execute the cURL command, i get the below error. Not sure what is the issue, i tried removing the Lombak dependencies from the ProductValue class but still no success.
curl -H "X-TENANT-ID: tenant1" -H "Content-Type: application/se.callista.blog.service.api.product.v1_0+json" -X POST -d '{"name":"Product 1"}' localhost:8080/products

2020-12-08 20:46:30.335 WARN 13848 --- [nio-8080-exec-1] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/se.callista.blog.service.api.product.v1_0+json;charset=UTF-8' not supported]
2020-12-08 20:46:30.365 WARN 13848 --- [nio-8080-exec-1] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No converter found for return value of type: class java.util.LinkedHashMap]

@beskow
Copy link

beskow commented Nov 16, 2022

I can't seem to reproduce your error. Could you provide more details: which branch are you running your tests in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants