Closed sqlboy closed 2 years ago
@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 INVALID_ARGUMENT: page_token doesn't match arguments from the request
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: https://github.com/googleapis/java-logging/blob/fabb88a21bf7e74672a2d41e7674eb90a49dbac2/samples/snippets/src/main/java/com/example/logging/ListLogEntries.java#L58-L65
I still get the issue using the code pasted above. Same error.
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!