Closed yadudoc closed 3 years ago
This is not fixed yet, just realized that with web service branch forwarder_rearch_update
the confusing exception above still occurs.
It stems from unclear behavior of the authorize_endpoint
function: https://github.com/funcx-faas/funcx-web-service/blob/429fdb46853180fb6bc32591dd9ebb16a591715b/funcx_web_service/authentication/auth.py#L106
It says it will just return False
if the user is not authorized for the endpoint, but instead it sometimes throws an exception, causing confusion
This was fixed by my error refactor: https://github.com/funcx-faas/funcX/pull/360
Currently, if a task is submitted to a non-existent endpoint, you get the generic
GlobusAPIError
:This is pending investigation of whether this causes the web-service to hang/crash.
Ryan confirms that a
KeyError
is raised when using the main branch.Once fixed, using a bad endpoint should have the submit method return an exception, say
NonExistentEndpoint
.