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

Warp10 is not available at 8080 port #1178

Closed
savelmtr opened this issue Jan 11, 2023 · 2 comments
Closed

Warp10 is not available at 8080 port #1178

savelmtr opened this issue Jan 11, 2023 · 2 comments

Comments

@savelmtr
Copy link

Hello everyone! I'm trying to test Warp10. Now I've set it up in docker container. Also I've generated all needed tokens. But when I try to make a request (an http one), I get a connection error.
Here is my docker-compose:

version: '3.7'

services:
  warp10:
    image: warp10io/warp10:latest
    restart: always
    volumes:
      - 'warp10_data:/data'
    ports:
      - '8080:8080'
      - '8081:8081'
    environment:
      - WARP10_HEAP=3g
      - WARP10_HEAP_MAX=3g
volumes:
  warp10_data:

Here is my request in pycharm:

POST http://localhost:8080/api/v0/update
Content-Type: text/plain
X-Warp10-Token: 7JFFkgL6wcJT39pOrljslq_.zPasxlye_aVdWA0ufQge4LvJH29yEH7M9PzhmtERxC.I8MQhrEerTJyRVHvIzh3IgR8f1kW63mfoZDiIIL7

1// test{} 42

Here is response in pycharm:

POST http://localhost:8080/api/v0/update

org.apache.http.NoHttpResponseException: localhost:8080 failed to respond

Here is my request in python (for thouse who like python syntax):

r = requests.post(
    'http://host.docker.internal:8080/api/v0/update',
    headers={'Content-Type': 'text/plain', 'X-Warp10-Token': '7JFFkgL6wcJT39pOrljslq_.zPasxlye_aVdWA0ufQge4LvJH29yEH7M9PzhmtERxC.I8MQhrEerTJyRVHvIzh3IgR8f1kW63mfoZDiIIL7'},
    data='''
    1380475081000000// foo{label0=val0,label1=val1} 123
    '''.encode('utf8')
)
r.text

And here is python's traceback (short version):

ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

So, people, what am I doing wrong?

@savelmtr savelmtr changed the title Warp10 is not available in 8080 port Warp10 is not available at 8080 port Jan 11, 2023
@hbs
Copy link
Collaborator

hbs commented Jan 11, 2023

Hi, since this seems related to docker, could you open your issue on warp10-docker rather than on warp10-platform which has no link to docker?

@savelmtr
Copy link
Author

Ok.

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

2 participants