Splash-Media-Co / server

Backend server for Splash
6 stars 0 forks source link

Server sends "Not authenticated" message successfully but outputs an error after #3

Closed NotFenixio closed 8 months ago

NotFenixio commented 8 months ago

Describe the bug Server sends the "Not authenticated" message (defined in auth/main.py#85-99), but outputs an error claiming that "[ERROR]: Error sending message to client : object NoneType can't be used in 'await' expression". The client receives the error but outputs this:

"statuscode":[
      {
         "cmd":"statuscode",
         "code":"E:101 | Syntax",
         "code_id":101,
         "details":{
            "id":[
               "required field"
            ]
         }
      }
   ]

To Reproduce Steps to reproduce the behavior:

  1. Download and run the Splash Dev Server
  2. Download and run the project "Post connector and broadcaster" from the Splash-Media-Co/client repo
  3. Edit the project to match the url of the server, run the project and try to send a post
  4. See error

Expected behavior it should not output any error, even if we are gracefully handling it.

Screenshots No screenshots necessary.

Desktop (please complete the following information):

Additional context No additional context.

NotFenixio commented 8 months ago

Seems like a random error with no apparent cause.

delusionsGH commented 8 months ago

should this be closed? i'm closing it just to be safe.