Skip to content

Conversation

@mcornaton
Copy link
Contributor

No description provided.

@mcornaton mcornaton marked this pull request as ready for review February 12, 2024 09:21
log.error("An error occurred while getting teeChallengePublicKey "
+ "[chainTaskId:{}, smsUrl:{}]", chainTaskId, smsUrl);
return Optional.of(teeChallengePublicKey);
} catch (FeignException e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With a reverse proxy, other runtime exceptions could happen in production.
Do we want to have the biggest net and catch all exceptions here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the idea. Here is a commit addressing the issue: a8997d4
Catching unchecked exceptions should be enough there, as Feign methods contract do not allow them to throw checked exceptions.

@sonarqubecloud
Copy link

@mcornaton mcornaton merged commit e49e30f into develop Feb 13, 2024
@mcornaton mcornaton deleted the bugfix/enclave-challenge-generation-try-catch branch February 13, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants