-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[@unkey/api 0.26.2
] response.error.message
is undefined
despite valid error object
#2387
Comments
@chronark I think this one is critical. It already affected me while working on templates. May I ask you to verify if this is still reproducible? |
cc @perkinsjr |
@perkinsjr @chronark Question: what determines if a bug qualifies for points? I haven’t found any new info in the guidelines. For example, this one is approved, but no points yet. Just curious about how the system works (yeah, after 3 weeks of participating 😅) |
/award 150 |
Awarding unrenamed: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/unrenamed |
@MichaelUnkey is on this btw, it's indeed a dumb mistake in our sdk |
@chronark thanks for the update |
Preliminary Checks
I have reviewed the documentation: https://unkey.com/docs
I have searched for existing issues: https://github.com/unkeyed/unkey/issues
This issue is not a question, general help request, or anything other than a bug report directly related to Unkey. Please ask questions in our Discord community: https://unkey.com/discord.
Reproduction / Replay Link (Optional)
No response
Issue Summary
When calling the
@unkey/api
methods (e.g.unkey.keys.create
), theresponse.error.message
field isundefined
, because of the nestederror
object though theresponse.error
object exists and contains other fields such as code and docs.When the expected response format contains one
error
object in the response:Same for
verifyKey
method. So I assume this may be a general behaviour for all methods.Steps to Reproduce
Code snippet
Actual result:
Expected behavior
error
property (no nestederror
fields)Other information
No response
Screenshots
Note that,
@unkey/api
types work correctly and TS autocomplete expectsmessage
property as it has to:Version info
The text was updated successfully, but these errors were encountered: