https in localhost
Published in
1 min readNov 20, 2019
Thin as it provides a ssl certificate
Issue : When working with oauth(omniauth-facebook)callback with https in localhost
[2019–06–02 16:13:39] ERROR bad URI `�\x0F�}9�{�F�C=\x1F����H�\x14���\x16�|1�Q�(�\x00$\x13\x01\x13\x03\x13\x02�+�/̨̩�,�0�’.
127.0.0.1 — — [02/Jun/2019:16:13:39 IST] “\x16\x03\x01\x02\x00\x01\x00\x01�\x03\x03�\x1C�~�c�Wtw���m;\x1F��ak��ߓ�ݵf�gp� �\x0F�}9�{�F�C=\x1F����H�\x14���\x16�|1�Q�(�\x00$\x13\x01\x13\x03\x13\x02�+�/̨̩�,�0�” 400 374
- -> �\x0F�}9�{�F�C=\x1F����H�\x14���\x16�|1�Q�(�\x00$\x13\x01\x13\x03\x13\x02�+�/̨̩�,�0
The servers which we have used in dev mode doesn’t seem to provide an ssl certificate to the client.
For dev purposes you can use “Thin” as it provides a ssl certificate if you start the server with the following command:
“thin start — ssl” instead of the usual:
“rails s/rails server”
omniauth-facebook sample here