apollographql / apollo-federation-subgraph-compatibility

A repo to test subgraph libraries compatibility with the Apollo Federation Specification
https://www.apollographql.com/docs/federation/building-supergraphs/supported-subgraphs/
MIT License
77 stars 58 forks source link

Invalid target 'x86_64-apple-darwin' for 'router' binary, target for router v1.39.1 or later. #629

Open steve-keep opened 5 months ago

steve-keep commented 5 months ago

Hi All 👋

Im trying to run the tests against a local server and I am getting an error when trying to download the router:

 info health check - router http://localhost:8088/health +187ms
  pm2 10|rover-inventory    | downloading the 'router' plugin from https://rover.apollo.dev/tar/router/x86_64-apple-darwin/v1.39.0
  pm2  +108ms
  pm2 8|rover-products      | error: HTTP status client error (400 Bad Request) for url (https://rover.apollo.dev/tar/router/x86_64-apple-darwin/v1.39.0)
  pm2  +41ms
  pm2 PM2                   | App [rover-products:8] exited with code [1] via signal [SIGINT]
  pm2  +3ms
  pm2 PM2                   | App [rover-products:8] starting in -fork mode-
  pm2  +1ms
  pm2 PM2                   | App [rover-products:8] online
  pm2  +2ms
  pm2 8|rover-products      | downloading the 'router' plugin from https://rover.apollo.dev/tar/router/x86_64-apple-darwin/v1.39.0

The server is responding with:

malformed request: invalid target 'x86_64-apple-darwin' for 'router' binary, you should download the 'x86_64-apple-darwin' target for router v1.39.1 or later.

Here is a minimal repo:

npm init --yes 
npm i @apollo/federation-subgraph-compatibility
npx fedtest pm2 --endpoint=http://localhost:9001