Closed Nuvindu closed 2 months ago
Hi @Nuvindu, This is not a bug but a design choice. We already have an issue for this: https://github.com/ballerina-platform/ballerina-library/issues/3494
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.
- Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
- Reason/Regression - The issue has introduced a regression.
- Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
- Reason/Complex - Issue occurred due to complex scenario.
- Reason/Invalid - Issue is invalid.
- Reason/Other - None of the above cases.
Description: When a
gmail:Client
is initialized with an invalid refresh token, a panic occurs instead of mapping the error value to the variable. That happens whenoauth2
module tries to generate a token using that invalid refresh token valueSteps to reproduce:
main.bal
file as below and run the project