Skip to content

Request error when running demo hello example in README #695

@KeplerC

Description

@KeplerC

Hi, I am trying to run the end-to-end quick start examples from README, but I am unable to do so because of the request error with inv.

  for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
....
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f2816a49040>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
.....
requests.exceptions.ConnectionError: HTTPConnectionPool(host='worker', port=8080): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2816a49040>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

Is there any procedure that I missed?

Here are a few things that I tried:

  1. running
docker compose up -d --scale worker=2 nginx
docker compose run cpp /bin/bash

from README will run two separate clusters. I fixed it by running them together and modify the cpp docker compose to use local host network.

  1. however, when I ran to the step
inv func.upload demo hello

it shows the request error shown above.

I used

/code/cpp# curl -X PUT localhost:8002/f/demo/hello -T  /code/cpp/build/func/demo/hello.wasm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 36255    0     0  100 36255      0  31444  0:00:01  0:00:01 --:--:-- 31444
curl: (52) Empty reply from server

to bypass the error.

  1. Then the inv invoke also causes the same error message of name resolution. I am unable to bypass the error by writing the python script from https://faasm.readthedocs.io/en/latest/source/api.html.
/code/cpp# python3 request.py
<Response [504]> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions