fablabbcn / smartcitizen-api

The Smart Citizen Engine
https://developer.smartcitizen.me
GNU Affero General Public License v3.0
10 stars 4 forks source link

Puma::HttpParserError: Invalid HTTP format, parsing fails. Are you trying to open an SSL connection to a non-SSL Puma? #253

Closed sentry-io[bot] closed 8 months ago

sentry-io[bot] commented 10 months ago

Sentry Issue: SC-API-B8

Puma::HttpParserError: Invalid HTTP format, parsing fails. Are you trying to open an SSL connection to a non-SSL Puma?
  puma (6.2.2) lib/puma/client.rb:257:in `execute'
  puma (6.2.2) lib/puma/client.rb:257:in `try_to_finish'
  puma (6.2.2) lib/puma/client.rb:276:in `eagerly_finish'
  puma (6.2.2) lib/puma/server.rb:416:in `process_client'
  puma (6.2.2) lib/puma/server.rb:233:in `block in run'
...
(1 additional frame(s) were not displayed)
timcowlishaw commented 8 months ago

This hasn't happened for a few weeks, and appears to be a client error - someone is trying to connect to the api server behind cloudflare using ssl, when ssl terminates at cloudflare. my best guess is that it was one of us with something in our local /etc/hosts to bypass CF, and possibly ssl urls cached in the brower, as the non-ssl endpoint shouldn't be accessible from the wider internet. Have snoozed in sentry for now and will take another look if it happens again