omeka / plugin-Reports

Generates report documents from Omeka items.
6 stars 5 forks source link

socket timeout on Google Charts API #2

Open kriskelly opened 13 years ago

kriskelly commented 13 years ago

PDF QR code generation occasionally fails with the following error:

stream_socket_client(): unable to connect to tcp://chart.apis.google.com:80 (Operation timed out) in application/libraries/Zend/Http/Client/Adapter/Socket.php on 230

This is a Zend Framework error caused by a failed connection to Google Charts API. This should be retry-able, but for some reason it just gives the error message instead of throwing the exception.

willynilly commented 11 years ago

@zerocrates I think the QR code generation is deprecated. Alternative?

https://developers.google.com/chart/infographics/docs/qr_codes

zerocrates commented 11 years ago

It's deprecated, but should continue until at least Apr. 2015, might be okay to stay as-is.

Otherwise: http://phpqrcode.sourceforge.net/ or something similar, I guess. It only claims GD as a dependency, which isn't bad, it's very common.

willynilly commented 11 years ago

@zerocrates I used the deprecated version of QR codes with my pull request for issue #12. What else needs to be done before we can close this issue?