'actions-on-google has StatusRuntimeException from time to time

We use actions-on-google library:

<dependency>
    <groupId>com.google.actions</groupId>
    <artifactId>actions-on-google</artifactId>
    <version>1.8.0</version>
</dependency>

Our flow includes calling HomeGraphApiServiceGrpc.requestSyncDevices(RequestSyncDevicesRequest request) to Synchronize our devices when something has changed. Our testers noticed that some requests return StatusRuntimeException and it appears more and more often now. How can we minimize the occurrence of such an error and what causes it may have?



Solution 1:[1]

Looks like you might be going above the rate limits for the HomeGraph API (applicable to REST & RPC APIs). Alternatively, there are two ways to issue request sync: synchronous (blocking) and asynchronous. If you are having issues with one of those types, you can try out the other.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Anish Yadav