Error code 400 | The request verb is invalid

I'm extracting stats for ~12K firms. My code was running for the first half, but now getting nothing, with the below error. Any ideas on how to get around this? I have tried over multiple days, at different times of the day, and regenerated my API key, but no luck so far.

HTTP Error 400. The request verb is invalid

Best Answer

  • It would be very helpful to have an example of the call that returns this error, as well as the detailed log for the error message. Use ek.set_log_level(1) method to create verbose log for Eikon Data APIs library. Another useful thing would be to get as much detail as possible for the failed HTTP request generated by Eikon Data APIs. You can either use Fiddler to capture the request. Or you can set Eikon desktop log to the max level. See instructions for using Eikon Configuration Manager to set Eikon desktop log level in the article titled "Eikon Data API(Python) Troubleshooting". Then grab the log file named APIProxy.YYYYMMDD.HHMMSS000.pPID.txt, where YYYYMMDD.HHMMSS000 is the timestamp for when the log was created and PID is Windows process ID number for the EikonBox.exe process that created the log. This log file (when created at maximum trace level) contains details of every request and response received by Eikon API Proxy.