Skip to content

Sample curl command and docs link in the docker image do not work #1561

@rainzoo

Description

@rainzoo

Test Steps

Followed the https://www.parseable.com/docs/flavours/oss docker command:

  1. Run with Docker
docker run -p 8000:8000 \
  -v /tmp/parseable/data:/parseable/data \
  -v /tmp/parseable/staging:/parseable/staging \
  -e P_FS_DIR=/parseable/data \
  -e P_STAGING_DIR=/parseable/staging \
  parseable/parseable:latest \
  parseable local-store

Which displays:

Welcome to Parseable Server! Deployment UID: "<redacted>"

    Server:
        Address:            "http://0.0.0.0:8000" (HTTP), ":8001" (livetail), ":8002" (flight protocol)
        Credentials:        "Using default creds <redacted>. Please set credentials with P_USERNAME and P_PASSWORD."
        Server Mode:        "Standalone"
        LLM Status:         "Not Configured"

    Storage:
        Storage Mode:       "Local drive"
        Staging Path:       "/parseable/staging"
        Store:              "/parseable/data", (latency: 810.75µs)

    About:
        Version:            "v2.3.1" ( v2.5.13 released a week ago. Download new release from https://github.com/parseablehq/parseable/releases/latest )
        Commit:             "70a4656"
        Docs:               "https://logg.ing/docs"
  1. Log in to the localhost:8000
Refer to our [Docs](https://www.parseable.com/docs/server/unti) to ingest your data or copy and run this curl command.
curl --location --request POST \ 'http://localhost:8000/api/v1/ingest' \ --header 'X-P-META-meta1: value1' \ --header 'X-P-TAG-tag1: value1' \ --header 'X-P-Stream: demo' \ --header 'Authorization: Basic YWRtaW46YWRtaW4=' \ --header 'Content-Type: application/json' \ --data-raw '[ { "id": "434a5f5e-2f5f-11ed-a261-0242ac120002", "datetime": "2023-01-05T07:20:50.52Z", "host": "153.10.110.81", "user-identifier": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) Firefox/64.0", "method": "PUT", "status": 500, "referrer": "http://www.google.com/" } ]'

Expected: Docs link and command should work

Actual: Command throws error, and the docs link is broken.

curl --location --request POST \ 'http://localhost:8000/api/v1/ingest' \ --header 'X-P-META-meta1: value1' \ --header 'X-P-TAG-tag1: value1' \ --header 'X-P-Stream: demo' \ --header 'Authorization: Basic YWRtaW46YWRtaW4=' \ --header 'Content-Type: application/json' \ --data-raw '[ { "id": "434a5f5e-2f5f-11ed-a261-0242ac120002", "datetime": "2023-01-05T07:20:50.52Z", "host": "153.10.110.81", "user-identifier": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) Firefox/64.0", "method": "PUT", "status": 500, "referrer": "http://www.google.com/" } ]'
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) bad range specification in URL position 2:
[ { "id": "434a5f5e-2f5f-11ed-a261-0242ac120002", "datetime": "2023-01-05T07:20:50.52Z", "host": "153.10.110.81", "user-identifier": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) Firefox/64.0", "method": "PUT", "status": 500, "referrer": "http://www.google.com/" } ]

Refer to our Docs

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions