New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloud-logging entry iteration example broken, fails if more than 1 page. #648
Comments
@sqlboy can you check whether you get the same error if you use the code from the public documentation example? |
Same issue here. I tried the public documentation example and it retrieves 50 log entries, than throws I tried the latest version in mvncentral (2.3.0) to no avail. When I halt execution and remove the page token from subsequent requests, replacing with empty string, the request is fine and more log entries are returned. |
Thank you for pointing out to this problem with the documentation. Indeed it reflects old code. We will fix the example. If you are looking for the working example, please have a look into ListLogEntries snippet: java-logging/samples/snippets/src/main/java/com/example/logging/ListLogEntries.java Lines 58 to 65 in fabb88a
|
I still get the issue using the code pasted above. Same error. |
Related to 987 |
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
If you are still having issues, please include as much information as possible:
Environment details
Specify the API at the beginning of the title. For example, "BigQuery: ...").
General, Core, and Other are also allowed as types
OS type and version: Linux
Java version: 11.0.10 / Kotlin
logging version(s): 3.1.0 , 3.0.1
Steps to reproduce
Code example
Stack trace
External references such as API reference guides
Any additional information below
Following these steps guarantees the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: