faro-web-sdk icon indicating copy to clipboard operation
faro-web-sdk copied to clipboard

error config collector "http://localhost:8027/collect"

Open ITMPGIT opened this issue 1 year ago • 5 comments

Description

error collect

Steps to reproduce

docker compose --profile demo up -d

Expected behavior

Actual behavior

I'm using the docker-compose.yaml from the repository, but the metrics are not being captured, I imagine that the address "http://localhost:8027/collect" is set incorrectly, it should be the hostname of the container "faro-web- sdk-agent-1" or am I mistaken?

Environment

  • SDK version:
  • SDK instrumentations:
  • Device type:
  • Device name:
  • OS:
  • Browser:

Demo

Context

ITMPGIT avatar Dec 04 '23 14:12 ITMPGIT

Hi @ITMPGIT

We recently added the x-faro-session-id header to each beacon request. To make this work it needs the current agent version where the new header is enabled for cors.

Did you maybe already use the demo before? If yes, you may need to pull the newest versions of the containers and rebuild them.

Cheers, Marco

codecapitano avatar Dec 04 '23 15:12 codecapitano

Thanks for the answer, I've never used the demo before. I recreated the containers but the same error occurs in the collector.

ran: docker compose --profile demo up -d --force-recreate --build

ITMPGIT avatar Dec 04 '23 16:12 ITMPGIT

Hi @ITMPGIT,

tested the demo and having the same issue. Investigating now.

codecapitano avatar Dec 05 '23 09:12 codecapitano

Hi @ITMPGIT

Pulled all images again and the the Demo worked as expected.

I used the following command:

docker-compose down && docker-compose build --pull && docker-compose --profile demo up

Would you mind trying it again?

image

Cheers, Marco

codecapitano avatar Dec 05 '23 09:12 codecapitano

I'm out of luck, even doing the pull again, I always have the same error.

image the only thing I changed was the Dockerfile due to the yarn timeout

ITMPGIT avatar Dec 05 '23 12:12 ITMPGIT