Closed JKYang01 closed 2 months ago
Here is the sample I print out for debugging:
URL: http://localhost:8085/api/v1/walrus/project/laobocai/input/packet Headers: {'accept': 'application/json', 'content-type': 'application/json', 'authorization': 'Basic TElWRVXXXXX1qMHJpZmUzaWk3'} Body: {'file_id': '102', 'instance_list': [{'name': 'door_single', 'type': 'box', 'x_min': 1460.8859329223633, 'x_max': 1494.4264602661133, 'y_min': 279.57553482055664, 'y_max': 311.56140518188477}, {'name': 'door_single', 'type': 'box', 'x_min': 794.037239074707, 'x_max': 845.9964065551758, 'y_min': 622.6457862854004, 'y_max': 672.6361427307129}], 'mode': 'update_with_existing'} Error: Received status code 405 from server. Response content: Not found.
I try to access the http://localhost:8085/api/v1/walrus/project/laobocai/input/packet but it shows Not found.
Not found.
Fixed this one by using the update function file = project.file.get_by_id(id = file_id) file.update( instance_list = instance )
Here is the sample I print out for debugging:
I try to access the http://localhost:8085/api/v1/walrus/project/laobocai/input/packet but it shows
Not found.