You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Exceptions thrown from within one blueprint are sometimes handled by the exception handler of another, unrelated blueprint instead of by its own. I have not had time to check whether this happens all the time or only if specific conditions are met, but I have attached a code snippet with which the issue can be reproduced.
Expected behavior
When accessing /api/v1/auth/network, an exception is raised, which is captured by the bpg1 exception handler; rendering a final response which displays the string BPG1_BaseException.
Actual behavior
When accessing /api/v1/auth/network, an exception is raised, which is (somehow) captured by the bpg2 exception handler; rendering a final response which displays the string BPG2_ExceptionA.
Environment (please complete the following information):
OS: Windows 10 Pro; 21H1; Compilation 19043.1165.
Versions: Sanic 21.6.2; Routing 0.7.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Exceptions thrown from within one blueprint are sometimes handled by the exception handler of another, unrelated blueprint instead of by its own. I have not had time to check whether this happens all the time or only if specific conditions are met, but I have attached a code snippet with which the issue can be reproduced.
Code snippet
Expected behavior
When accessing
/api/v1/auth/network
, an exception is raised, which is captured by thebpg1
exception handler; rendering a final response which displays the stringBPG1_BaseException
.Actual behavior
When accessing
/api/v1/auth/network
, an exception is raised, which is (somehow) captured by thebpg2
exception handler; rendering a final response which displays the stringBPG2_ExceptionA
.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: