Comments (4)
It's not enough information for me to help you solve the issue. Please share also logs from tokens
service and some information about how you deploy / configure things.
from graphql-hive.
@kamilkisiela All the services are up and running successfully based on the logs. I am trying to deploy this in AWS. Below are the logs for tokens service. I am following the self hosting guide
{
"level": 30,
"time": 1712866137724,
"pid": 7,
"hostname": "ip-10-0-xx-xxx.ec2.internal",
"msg": "Service \"tokens\" is ready"
}
{
"level": 30,
"time": 1712866137725,
"pid": 7,
"hostname": "ip-10-0-xx-xx.ec2.internal",
"msg": "Server listening at http://[::]:8080"
}
2024-04-11T20:08:57.734Z ioredis:redis status[10.0.xxx.111:6379]: connecting -> connect
2024-04-11T20:08:57.734Z ioredis:redis status[10.0.xxx.111:6379]: connect -> ready
{
"level": 30,
"time": 1712866137735,
"pid": 7,
"hostname": "ip-10-0-xxx-xxx.ec2.internal",
"msg": "Redis connection established"
}
{
"level": 30,
"time": 1712866137735,
"pid": 7,
"hostname": "ip-10-0-xxx-xxx.ec2.internal",
"msg": "Redis is ready, purging the in-memory cache"
}
{
"level": 30,
"time": 1712866137735,
"pid": 7,
"hostname": "ip-10-0-xxx-xxx.ec2.internal",
"msg": "Redis connection ready... "
}
I dont see any requests being logged in the tokens service though. This was for an older version of Hive. I tried deploying the latest images but encountering a different error. I have added the logs there as well. Please take a look at that issue as well
from graphql-hive.
Tried with the latest version of Hive. Here is the error I am seeing in the server logs after the request gets timed out. I am using the token generated from the UI
Hive CLI: @graphql-hive/cli/0.34.1 darwin-x64 node-v18.19.1
TRPCClientError: fetch failed
at TRPCClientError.from (file:///usr/src/app/@hive/server/index.js:283979:12)
at file:///usr/src/app/@hive/server/index.js:284126:30 {
message: 'Invalid token provided',
path: [ 'schemaPublish' ],
locations: [ { line: 2, column: 3 } ],
extensions: [Object: null prototype]
{}
}
TRPCClientError: fetch failed
at TRPCClientError.from (file:///usr/src/app/@hive/server/index.js:283979:12)
at file:///usr/src/app/@hive/server/index.js:284126:30 {
message: 'Invalid token provided',
path: undefined,
locations: undefined,
extensions: [Object: null prototype]
{}
I am seeing other requests in the tokens service logs being processed
[200] (::ffff:10.0.102.21) GET /trpc/targetTokens?input=%7B%22targetId%22%3A%2291c19b68-89ee-46a2-ade3-994ff7e8697b%22%7D (reqId=2Buer+IaTk+SotEQzGrU4g/0000030104
Writing token (target=91c19b68-89ee-46a2-ade3-994ff7e8697b)
[200] (::ffff:10.0.102.21) POST /trpc/createToken (reqId=2Buer+IaTk+SotEQzGrU4g/0000030116)
But there are no logs for GET /trpc/getToken?
tokens.scopes
field from the database
{target:registry:read,target:registry:write,target:read,project:read,organization:read}
from graphql-hive.
I was able to resolve this. If you are deploying this using the AWS redis cluster, ensure TLS is disabled by setting this flag to false
.
This issue helped me get to the root cause.
from graphql-hive.
Related Issues (20)
- Break client package into library-specific packages
- Hive client fails with TypeError: Cannot read properties of undefined (reading 'name') when using JSON scalar
- [feature-request]: add search to schema checks HOT 2
- Upgrade to Node.js v22
- Self-hosted: Apollo Federation: Unable to use schema with @external HOT 1
- Add toast component on save for better feedback
- bug: Application error: a client-side exception has occurred (see the browser console for more information).
- Date range component: fix order in search input
- Storybook: Add all components and reorder
- store registry tokens on S3
- Proposal: Migrate to use Server Preset for resolvers
- Support Authorisation for Webhooks
- Make subgraph schemas shareable
- Apollo Router does not work with rust 1.78 HOT 1
- Document how to change the billing email
- replace randomairborne/r2-release action from CI
- Unable to open Stripe billing page HOT 1
- Stripe billing dashboard button throws `Error: Invariant failed`
- Operation Insights: Metadata Tags for operations HOT 1
- Server crash when querying non-existing field using Apollo Server with @graphql-hive/apollo plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-hive.