Open psh opened 7 years ago
@Bukati
The exception you get for a zero part request comes from OkHttp. We will update the code snippet on the marketplace. Thanks.
How will updating the code snippet help? This is a legitimate API that takes no parameters. The exception is telling me that the code in RapidApiConnect
needs to add an empty request body (skip lines 63-84 if we are given an empty map).
I have a pull request ready if you're open to it, with associated unit test that exercises the bug.
Of course, shoot
Using code that matches the snippet on your website:
Result: fails with java.lang.IllegalStateException: Multipart body must have at least one part.