PodioFile::upload new error "PodioError"
Since very recently, the API is returning a generic "PodioError" when calling PodioFile::upload (sometimes). There's no descriptive string that comes along with it, so it's hard to diagnose the issue on our end. PodioError Stack Trace: #0 /var/www/flow/html/podio-php-master/lib/Podio.php(293): Podio::request('POST', '/file/v2/', Array, Array) #1 /var/www/flow/html/podio-php-master/models/PodioFile.php(39): Podio::post('/file/v2/', Array, Array) #2 /var/www/flow/html/inc/flow_functions.php(3032): PodioFile::upload('attachments/123...', 'Anni.jpg') #3 .... I'm thinking this may be an authentication issue since I've noticed cross-workspace activity with these errors. If this is the case, it would be good to get the standard PodioForbiddenError. Either way, it would be good to get something more descriptive that we can trap and handle more effectively.

  • I'll do this if/when it crops up again. As I couldn't reproduce the problem myself (it was happening in production to live users), my immediate concern was to fix. I've added a bunch of code based on some assumptions, and the errors have gone away for now.
  • Is there any way you can capture the raw http response (headers + body)? It'll make it a lot simpler to track down
This question is closed.