Lock after unlock returning 423 HTTP code

I’ve had some issue, where I unlatch and shortly after send lock command. Then lock command gives back 423 Locked. Which first of all is not true, and second I dont see an issue with such follow up command. It will return 423 for about 7s after unlatch command. If lock is busy by previous command, can we delay the next command?

Full debug log here:


EUROPE+marekn@marekn-Yoga-7th MINGW64 ~
$ curl -X POST https://api.nuki.io/smartlock/18082757748/action/unlock -H "authorization:Bearer d3d6...." -v
* processing: https://api.nuki.io/smartlock/18082757748/action/unlock
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 82.165.163.169:443...
* Connected to api.nuki.io (82.165.163.169) port 443
* schannel: disabled automatic use of client certificate
* using HTTP/1.x
> POST /smartlock/18082757748/action/unlock HTTP/1.1
> Host: api.nuki.io
> User-Agent: curl/8.2.1
> Accept: */*
> authorization:Bearer d3d6....
>
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
< HTTP/1.1 204 No Content
< Server: nginx
< Date: Wed, 10 Jan 2024 19:37:19 GMT
< Content-Type: application/json
< Connection: keep-alive
< Accept-Ranges: bytes
< Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
< Strict-Transport-Security: max-age=31536000; includeSubdomains;
< Public-Key-Pins: pin-sha256="cY5ERqzw0VQ4EmL7g1weNwfk/Jf5V/yIcWlUucgYOa4="; pin-sha256="0S93T5PvHuihT5agm+LMQ2WlDZR3f8JUqK3txk+fEtc="; max-age=2592000; includeSubDomains
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Referrer-Policy: strict-origin-when-cross-origin
<
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Connection #0 to host api.nuki.io left intact

EUROPE+marekn@marekn-Yoga-7th MINGW64 ~
$ curl -X POST https://api.nuki.io/smartlock/18082757748/action/lock -H "authorization:Bearer d3d6...." -v
* processing: https://api.nuki.io/smartlock/18082757748/action/lock
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 82.165.163.169:443...
* Connected to api.nuki.io (82.165.163.169) port 443
* schannel: disabled automatic use of client certificate
* using HTTP/1.x
> POST /smartlock/18082757748/action/lock HTTP/1.1
> Host: api.nuki.io
> User-Agent: curl/8.2.1
> Accept: */*
> authorization:Bearer d3d6....
>
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
< HTTP/1.1 423 Locked
< Server: nginx
< Date: Wed, 10 Jan 2024 19:37:26 GMT
< Content-Type: application/json;charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Accept-Ranges: bytes
< Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
<
{ [54 bytes data]
100    43    0    43    0     0    426      0 --:--:-- --:--:-- --:--:--   434{"stackTrace":[],"suppressedExceptions":[]}
* Connection #0 to host api.nuki.io left intact

EUROPE+marekn@marekn-Yoga-7th MINGW64 ~
$ curl -X POST https://api.nuki.io/smartlock/18082757748/action/unlock -H "authorization:Bearer d3d6...." -v
* processing: https://api.nuki.io/smartlock/18082757748/action/unlock
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 82.165.163.169:443...
* Connected to api.nuki.io (82.165.163.169) port 443
* schannel: disabled automatic use of client certificate
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* using HTTP/1.x
> POST /smartlock/18082757748/action/unlock HTTP/1.1
> Host: api.nuki.io
> User-Agent: curl/8.2.1
> Accept: */*
> authorization:Bearer d3d6....
>
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
< HTTP/1.1 204 No Content
< Server: nginx
< Date: Wed, 10 Jan 2024 19:37:37 GMT
< Content-Type: application/json
< Connection: keep-alive
< Accept-Ranges: bytes
< Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
< Strict-Transport-Security: max-age=31536000; includeSubdomains;
< Public-Key-Pins: pin-sha256="cY5ERqzw0VQ4EmL7g1weNwfk/Jf5V/yIcWlUucgYOa4="; pin-sha256="0S93T5PvHuihT5agm+LMQ2WlDZR3f8JUqK3txk+fEtc="; max-age=2592000; includeSubDomains
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Referrer-Policy: strict-origin-when-cross-origin
<
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Connection #0 to host api.nuki.io left intact

EUROPE+marekn@marekn-Yoga-7th MINGW64 ~
$ curl -X POST https://api.nuki.io/smartlock/18082757748/action/lock -H "authorization:Bearer d3d6...." -v
* processing: https://api.nuki.io/smartlock/18082757748/action/lock
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 82.165.163.169:443...
* Connected to api.nuki.io (82.165.163.169) port 443
* schannel: disabled automatic use of client certificate
* using HTTP/1.x
> POST /smartlock/18082757748/action/lock HTTP/1.1
> Host: api.nuki.io
> User-Agent: curl/8.2.1
> Accept: */*
> authorization:Bearer d3d6....
>
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
< HTTP/1.1 204 No Content
< Server: nginx
< Date: Wed, 10 Jan 2024 19:37:44 GMT
< Content-Type: application/json
< Connection: keep-alive
< Accept-Ranges: bytes
< Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
< Strict-Transport-Security: max-age=31536000; includeSubdomains;
< Public-Key-Pins: pin-sha256="cY5ERqzw0VQ4EmL7g1weNwfk/Jf5V/yIcWlUucgYOa4="; pin-sha256="0S93T5PvHuihT5agm+LMQ2WlDZR3f8JUqK3txk+fEtc="; max-age=2592000; includeSubDomains
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Referrer-Policy: strict-origin-when-cross-origin
<
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Connection #0 to host api.nuki.io left intact