Comments (3)
Hi @jizh6311 ,
Can you share some of the code that you wrote where this behavior was problematic?
I think I know what you ran into, but would love to see it from you just so I'm not making assumptions.
Here's the code that generates the go client library: https://github.com/FusionAuth/fusionauth-client-builder/blob/master/src/main/client/go.client.ftl#L22
from go-client.
Hi @jizh6311 ,
Can you share some of the code that you wrote where this behavior was problematic?
I think I know what you ran into, but would love to see it from you just so I'm not making assumptions.
Here's the code that generates the go client library: https://github.com/FusionAuth/fusionauth-client-builder/blob/master/src/main/client/go.client.ftl#L22
@mooreds Thanks for your reply! What I ran into was straightforward: when the apiKey was invalid, this code section was unable to get the unauthorized error. Instead, the error was nil.
...
fusionAuthClient := NewClient(httpClient, baseURL, apiKey)
groups, err := fusionAuthClient.RetrieveGroups()
if err != nil {
// log the errors
}
More specifically, I notice the error is void
in the json for retrieveGroups
: https://github.com/FusionAuth/fusionauth-client-builder/blob/3092673bc052942d430ba5c946824cac4352ed33/src/main/api/retrieveGroups.json, but it is Errors
in some other json files: https://github.com/FusionAuth/fusionauth-client-builder/blob/3092673bc052942d430ba5c946824cac4352ed33/src/main/api/addUserToFamily.json#L9.
from go-client.
Yes, I was seeing that too. I think it might be because we always expect a response back from the groups API (unless, of course, the server is down or the API key is invalid). Will think about this a bit. Appreciate the response.
from go-client.
Related Issues (20)
- ResendEmailVerification(): Always getting 401 HOT 4
- Tag release according to golang standards HOT 2
- Compilation error: pkg/fusionauth/Domain.go:2858:16: undefined: double HOT 2
- Login API cant get the refresh token without Application id in body request HOT 2
- GO client does not return headers from http response HOT 1
- CreateTenant with SourceTenantId does not behave as expected HOT 2
- ChangePasswordByIdentity API not working HOT 1
- ChangePasswordByIdentity API works without current password [URGENT]
- quesiton about retrieving logs HOT 2
- Missing Create Identity-provider API HOT 1
- Invalid Content-Type when making requests against server HOT 4
- WebhookIDs not available on tenant HOT 2
- compilation error: fusionauth/Client.go:4637:81: undefined: UserinfoResponse HOT 6
- CoseAlgorithmIdentifier is typed as a string but the API returns integers
- No 2XX status codes without a body may hide errors
- RegistrationRequest.User omitempty ineffective HOT 1
- register a user to an application
- User struct missing email verification related fields HOT 2
- Unable to consume go-client v0.0.0-20240624180314-2e401feb55f7 HOT 5
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 go-client.