Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

stream_set_timeout() expects parameter 1 to be resource, boolean given #70

Open
ThomWright opened this issue Mar 20, 2018 · 0 comments
Open

Comments

@ThomWright
Copy link

Error with relevant slice of the stack trace:

exception 'ErrorException' with message 
  'stream_set_timeout() expects parameter 1 to be resource, boolean given'
  in /var/www/vendor/jimdo/prometheus_client_php/src/Prometheus/Storage/Redis.php:100
Stack trace:
  #0 (): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
  #1 /var/www/vendor/jimdo/prometheus_client_php/src/Prometheus/Storage/Redis.php(100): Redis->setOption()
  #2 /var/www/vendor/jimdo/prometheus_client_php/src/Prometheus/Storage/Redis.php(142): Prometheus\Storage\Redis->openConnection()
  #3 /var/www/vendor/jimdo/prometheus_client_php/src/Prometheus/Gauge.php(31): Prometheus\Storage\Redis->updateGauge()
  #4 /var/www/app/Services/MetricsService.php(38): Prometheus\Gauge->set()

I don't know if this helps: https://stackoverflow.com/questions/22898810/cant-get-stream-set-timeout-to-work-in-foreach-array-loop

If you need any more information let me know, I don't really know anything about PHP but I can ask someone who does.

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

No branches or pull requests

1 participant