Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InsecureRequestWarning while running examples #65

Open
pranaythales opened this issue May 19, 2023 · 0 comments
Open

InsecureRequestWarning while running examples #65

pranaythales opened this issue May 19, 2023 · 0 comments

Comments

@pranaythales
Copy link

Hello,

When I run the command sudo docker-compose up --build in examples to start the receiver and transmitter (without doing any changes to the pulled code), I continuously get InsecureRequestWarning like the one shown below:

> examples-receiver-1     | /usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'transmitter'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
> examples-receiver-1     |   warnings.warn(
> examples-transmitter-1  | [2023-05-19 14:51:31,448] INFO in _internal: 172.21.0.3 - - [19/May/2023 14:51:31] "POST /register HTTP/1.1" 200 -
> examples-receiver-1     | /usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'transmitter'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
> examples-receiver-1     |   warnings.warn(

I am not sure if this is an issue or not, but the example doesn't seem to work, hence I'm asking this. Can someone please provide the detail steps or pre-requisites to run the example as I am a bit lost here. I just want to run a sample transmitter and receiver and make them communicate with each other according to the SSE spec

My current steps were:

  1. cloning the repository
  2. Ru the command sudo docker-compose up --build inside the examples directory
  3. Open the https://localhost/ui in the browser and http://localhost:5003/request_verification in the browser where it shows that it has "Submitted request for verification event". but the output in the terminal looks like this:
examples-transmitter-1  | [2023-05-19 13:59:50,752] INFO in _internal: 172.21.0.1 - - [19/May/2023 13:59:50] "GET /ui/ HTTP/1.1" 200 -
examples-transmitter-1  | [2023-05-19 13:59:50,794] INFO in _internal: 172.21.0.1 - - [19/May/2023 13:59:50] "GET /ui/swagger-ui.css HTTP/1.1" 304 -
examples-transmitter-1  | [2023-05-19 13:59:50,800] INFO in _internal: 172.21.0.1 - - [19/May/2023 13:59:50] "GET /ui/swagger-ui-standalone-preset.js HTTP/1.1" 304 -
examples-transmitter-1  | [2023-05-19 13:59:50,802] INFO in _internal: 172.21.0.1 - - [19/May/2023 13:59:50] "GET /ui/swagger-ui-bundle.js HTTP/1.1" 304 -
examples-transmitter-1  | [2023-05-19 13:59:51,127] INFO in _internal: 172.21.0.1 - - [19/May/2023 13:59:51] "GET /openapi.json HTTP/1.1" 200 -
examples-receiver-1     | /usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'transmitter'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
examples-receiver-1     |   warnings.warn(
examples-receiver-1     | [2023-05-19 14:01:02,203] INFO in app: {
examples-receiver-1     |   "jti": "96d71e4af64d11ed8e9a0242ac150002",
examples-receiver-1     |   "iat": 1684504862,
examples-receiver-1     |   "iss": "https://most-secure.com/",
examples-receiver-1     |   "aud": "http://example_receiver",
examples-receiver-1     |   "events": {
examples-receiver-1     |     "https://schemas.openid.net/secevent/sse/event-type/verification": {
examples-receiver-1     |       "state": "0cfea5a216dd433f86b90b977ba4a82a"
examples-receiver-1     |     }
examples-receiver-1     |   }
examples-receiver-1     | }
examples-receiver-1     | [2023-05-19 14:01:02,203] INFO in _internal: 172.21.0.2 - - [19/May/2023 14:01:02] "POST /event HTTP/1.1" 202 -
examples-transmitter-1  | [2023-05-19 14:01:02,204] INFO in _internal: 172.21.0.3 - - [19/May/2023 14:01:02] "POST /verification HTTP/1.1" 204 -
examples-receiver-1     | [2023-05-19 14:01:02,205] INFO in _internal: 172.21.0.1 - - [19/May/2023 14:01:02] "GET /request_verification HTTP/1.1" 200 -
examples-transmitter-1  | [2023-05-19 14:10:15,904] INFO in _internal: 172.21.0.1 - - [19/May/2023 14:10:15] "GET /ui/register HTTP/1.1" 404 -

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

No branches or pull requests

1 participant