File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed 
services/invitations/src/simcore_service_invitations Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1414def  handle_invalid_invitation_code_error (request : Request , exception : Exception ):
1515    assert  isinstance (exception , InvalidInvitationCodeError )  # nosec 
1616    user_msg  =  INVALID_INVITATION_URL_MSG 
17+ 
1718    _logger .warning (
1819        ** create_troubleshotting_log_kwargs (
1920            user_msg ,
2021            error = exception ,
2122            error_context = {
2223                "request" : f"{ request }  " ,
2324                "request.method" : f"{ request .method }  " ,
24-                 "request.path " : f"{ request .url . path }  " ,
25+                 "request.url " : f"{ request .url }  " ,
2526            },
26-             tip = "Some  invitation link is invalid. Note that the encryption key for generation/check must  be the same! " ,
27+             tip = "An  invitation link could not  be extracted " ,
2728        )
2829    )
2930
3031    return  JSONResponse (
3132        status_code = status .HTTP_422_UNPROCESSABLE_ENTITY ,
32-         content = {"detail" : INVALID_INVITATION_URL_MSG },
33+         content = {"detail" : user_msg },
3334    )
3435
3536
Original file line number Diff line number Diff line change @@ -168,5 +168,7 @@ def extract_invitation_content(
168168        return  content 
169169
170170    except  (InvalidToken , ValidationError , binascii .Error ) as  err :
171-         msg  =  "Failed while decripting" 
171+         msg  =  (
172+             "Failed while decripting. TIP: secret key at encryption might be different" 
173+         )
172174        raise  InvalidInvitationCodeError (msg ) from  err 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments