I'm unable to store my sitespeed result on influxdb
Have you read the documentation?
- [X] Yes, I've read the how to make a reproducable bug guide
- [X] Yes, I've read the how to debug my script guide
URL
https://example.com
What are you trying to accomplish
Getting the below error. { "url": ["https://www.example.com"], "browsertime": { "iterations": 1, "browser": "chrome" }, "influxdb": { "host": "http://localhost:8086/", "port": 8086, "protocol": "http", "database": "sitespeed", "username": "xxx", "password": "xxx", "token": "xyz-b00Q==", "org": "incred", "bucket": "sitespeed" } }
What browser did you use?
Chrome
How to reproduce
docker run --rm -v "$(pwd)/sitespeed-config.json:/sitespeed-config.json" \
sitespeedio/sitespeed.io \
--config /sitespeed-config.json \
https://www.example.com
docker run --rm -v "$(pwd)/sitespeed-config.json:/sitespeed-config.json" \
sitespeedio/sitespeed.io \
--config /sitespeed-config.json \
https://www.example.com
Google Chrome 126.0.6478.55
Mozilla Firefox 127.0
Microsoft Edge 125.0.2535.92
[2024-07-03 11:15:30] INFO: Versions OS: linux 6.6.16-linuxkit nodejs: v20.9.0 sitespeed.io: 34.3.5 browsertime: 22.5.3 coach: 8.0.2
[2024-07-03 11:15:31] INFO: Running tests using Chrome - 1 iteration(s)
[2024-07-03 11:15:32] INFO: Testing url https://www.example.com iteration 1
[2024-07-03 11:15:41] INFO: Take after page complete check screenshot
[2024-07-03 11:15:42] INFO: Take cumulative layout shift screenshot
[2024-07-03 11:15:42] INFO: Take largest contentful paint screenshot
[2024-07-03 11:15:45] INFO: Use the visual metrics portable script
[2024-07-03 11:15:45] INFO: Get visual metrics from the video
[2024-07-03 11:15:47] INFO: https://www.example.com 2 requests, TTFB: 1.10s, firstPaint: 1.16s, firstVisualChange: 1.19s, FCP: 1.16s, DOMContentLoaded: 1.11s, LCP: 1.16s, CLS: 0, TBT: 0ms, CPUBenchmark: 72ms, Load: 1.11s, speedIndex: 1.19s, visualComplete85: 1.19s, lastVisualChange: 1.19s
[2024-07-03 11:15:48] INFO: The server responded with a 404 status code for https://www.example.com/favicon.ico
[2024-07-03 11:15:48] ERROR: Error: getaddrinfo ENOTFOUND http
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
[2024-07-03 11:15:48] ERROR: Error: getaddrinfo ENOTFOUND http
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
[2024-07-03 11:15:48] ERROR: Error: getaddrinfo ENOTFOUND http
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
[2024-07-03 11:15:48] ERROR: Error: getaddrinfo ENOTFOUND http
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
[2024-07-03 11:15:48] ERROR: Error: getaddrinfo ENOTFOUND http
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
[2024-07-03 11:15:48] ERROR: Error: getaddrinfo ENOTFOUND http
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
[2024-07-03 11:15:48] ERROR: Error: getaddrinfo ENOTFOUND http
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
Log output
No response
Hi @MadhanIncred when setting the host, instead of http://localhost:8086/ try setting only the host localhost. Also when you are in a Docker container, localhost is treated to be inside the container. Depending on what OS you use, there are different workarounds: https://www.sitespeed.io/documentation/sitespeed.io/docker/#access-localhost