Hello everyone!
I am using Nylas and particularly Thread, Email and Attachment APIs. When using these APIs I am also using pagination as specified in the docs. This means that I get the next_cursor value that is returned and pass it to the page_token in order to get the next page.
Since yesterday I have noticed that the Threads API next_cursor value has become progressively larger as the pages increase, and I remember it used to be much smaller.
Email API continues to have a short next_cursor value (e.g. JHNraXA9Mg==)
This means that as the pages go by I end up with a next_cursor like this
eyJ0aHJlYWRzIjpbIkFRUWtBREF3QVRNME1EQUFNUzA0WkdGaUxXUmxOVGN0TURBQ0xUQXdDZ0FRQU55ajRXOF9wZnhPbzdRa2s0WmtWcjg9IiwiQVFRa0FEQXdBVE0wTURBQU1TMDRaR0ZpTFdSbE5UY3RNREFDTFRBd0NnQVFBTnhHZVhJZUpFNUttVDNTOF9jZ1M1ND0iLCJBUVFrQURBd0FUTTBNREFBTVMwNFpHRmlMV1JsTlRjdE1EQUNMVEF3Q2dBUUFKbEVSQUJZVEhQeFE0T0tTdVlKNUs2ZyIsIkFRUWtBREF3QVRNME1EQUFNUzA0WkdGaUxXUmxOVGN0TURBQ0xUQXdDZ0FRQUwzcmdzTFJBMGhHazZ6ZXNBV2hsUW89IiwiQVFRa0FEQXdBVE0wTURBQU1TMDRaR0ZpTFdSbE5UY3RNREFDTFRBd0NnQVFBSnJ6NkxYRUdlWkFzZmtTR2tSQm9GST0iLCJBUVFrQURBd0FUTTBNREFBTVMwNFpHRmlMV1JsTlRjdE1EQUNMVEF3Q2dBUUFMQUg2MGk4Vm5sT2ljSnJMcTlJZ0pNPSIsIkFRUWtBREF3QVRNME1EQUFNUzA0WkdGaUxXUmxOVGN0TURBQ0xUQXdDZ0FRQUtWMU04M0c0NFJKb2Q5Y2pGQm9jd289IiwiQVFRa0FEQXdBVE0wTURBQU1TMDRaR0ZpTFdSbE5UY3RNREFDTFRBd0NnQVFBTXVhaEZzOWdHNUxxZEpYamFmVHF2UT0iLCJBUVFrQURBd0FUTTBNREFBTVMwNFpHRmlMV1JsTlRjdE1EQUNMVEF3Q2dBUUFOY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message Request Header Fields Too Large
.
Is there any way to shorten the next_cursor value?