You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the above type error when invoking DaprClient->deleteState().
The implementation for this in Dapr\Client\HttpStateTrait calls deleteStateAsync which in turn calls tryDeleteStateAsync - triggering the error. This is caused by tryDeleteStateAsync requiring an eTag, which is defined as a string and isn't nullable - yet null is passed in this instance.
There are some other type errors in that file too but in my scenario I've only run into the issue with deleteState. The workaround seems to be to used only the tryDeleteState functions, and provide an eTag.
Updating the definition of tryDeleteStateAsync to have string $etag = null, solves the problem and appears to be the intended definition.
The text was updated successfully, but these errors were encountered:
Getting the above type error when invoking
DaprClient->deleteState()
.The implementation for this in
Dapr\Client\HttpStateTrait
callsdeleteStateAsync
which in turn callstryDeleteStateAsync
- triggering the error. This is caused bytryDeleteStateAsync
requiring aneTag
, which is defined as astring
and isn't nullable - yet null is passed in this instance.There are some other type errors in that file too but in my scenario I've only run into the issue with
deleteState
. The workaround seems to be to used only thetryDeleteState
functions, and provide aneTag
.Updating the definition of
tryDeleteStateAsync
to havestring $etag = null,
solves the problem and appears to be the intended definition.The text was updated successfully, but these errors were encountered: