# Workflowcheck alerts on using temporal sdk function

**URL:** <https://community.temporal.io/t/workflowcheck-alerts-on-using-temporal-sdk-function/4834>\
**Category:** Community Support\
**Tags:** go-sdk\
**Created:** [May 30, 2022, 10:57am UTC](https://community.temporal.io/t/workflowcheck-alerts-on-using-temporal-sdk-function/4834 "2022-05-30T10:57:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maki\_XIE](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maki_xie/32/2040_2.png) [@maki\_XIE](https://community.temporal.io/u/maki_XIE)\
**Post date:** [May 30, 2022, 10:57am UTC](https://community.temporal.io/t/workflowcheck-alerts-on-using-temporal-sdk-function/4834/1 "2022-05-30T10:57:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/d/db64cc34eeb51e2f1b35075923a78b58cc0a29f1.png)

Hi, I am using the following code in my workflow definition and workflowcheck alerts non-deterministic errors on this. Why is that ?? I find the errors are on internal part of the temporal sdk, and is there a bug in my code?

` isNotTimeout, err := workflow.AwaitWithTimeout( ctx, content.ApprovalExpiration, submitSelector.HasPending) `

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [May 30, 2022, 4:22pm UTC](https://community.temporal.io/t/workflowcheck-alerts-on-using-temporal-sdk-function/4834/2 "2022-05-30T16:22:42Z")

</div>

Looks like a possible bug with the static analyzer tool. Opened issue [Workflow static analyzer tool raises non-deterministic error on workflow.AwaitWithTimeout · Issue #818 · temporalio/sdk-go · GitHub](https://github.com/temporalio/sdk-go/issues/818).

Could you comment on that issue and paste the error there as text (currently its an image)?
