Description
Checklist
- I have looked into the README and have not found a suitable solution or answer.
- I have looked into the documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Slack Community and have not found a suitable solution or answer.
- I agree to the terms within the OpenFGA Code of Conduct.
Description
I'm getting:
Assertion failed: process_title, file c:\ws\deps\uv\src\win\util.c, line 418
when constructing OpenFgaClient on our corporate network.
The strange thing is that the exact same code, credentials and environment work fine when I run it from our Amazon network and Kubernetes clusters.
This is where the code is failing on our local network but succeeding on our Kubernetes cluster in our amazon network, one other oddity is that I've seen it work before on our corporate network which led me to think there as a network issue with a proxy or firewall but I disabled all of those and even ran it on my mobile hotspot network but it still fails. I've tried various methods and am happy to work with anyone to figure out what is up with this. Making http requests through Axios seems to work just fine making me think it some sort of bug in the NPM library?
import { CredentialsMethod, OpenFgaClient } from '@openfga/sdk'
const init = {
apiUrl: FGA_API_URL,
storeId: FGA_STORE_ID,
authorizationModelId: process.env.FGA_MODEL_ID,
credentials: {
method: CredentialsMethod.ClientCredentials,
config: {
apiTokenIssuer: FGA_API_TOKEN_ISSUER,
apiAudience: FGA_API_AUDIENCE,
clientId: FGA_CLIENT_ID,
clientSecret: FGA_CLIENT_SECRET,
}
}
};
const fgaClient = new OpenFgaClient(init);
//Assertion failed: process_title, file c:\ws\deps\uv\src\win\util.c, line 418
Expectation
Any guidance or help would be appreciated.
Reproduction
import { CredentialsMethod, OpenFgaClient } from '@openfga/sdk'
const init = {
apiUrl: FGA_API_URL,
storeId: FGA_STORE_ID,
authorizationModelId: process.env.FGA_MODEL_ID,
credentials: {
method: CredentialsMethod.ClientCredentials,
config: {
apiTokenIssuer: FGA_API_TOKEN_ISSUER,
apiAudience: FGA_API_AUDIENCE,
clientId: FGA_CLIENT_ID,
clientSecret: FGA_CLIENT_SECRET,
}
}
};
const fgaClient = new OpenFgaClient(init);
//Assertion failed: process_title, file c:\ws\deps\uv\src\win\util.c, line 418
SDK Checklist
- JS SDK
- Go SDK
- .NET SDK
- Python SDK
- Java SDK
OpenFGA SDK version
"version": "0.8.0",
OpenFGA version
latest, we just purchased your okta fga server
SDK Configuration
CredentialsMethod.ClientCredentials
Logs
No response
References
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status