I am trying to publish a large amount of files to hosted scene layers on AGOL using the API for Python. However, after about an hour I receive the error: exception: invalid token. (error code: 498). This causes my upload process to halt and I need to then parse out what did and not not get published to AGOL. Is there a way around this? To my knowledge, to be able to publish content I need to be logged in due to our organization's permission settings.
Believe I found the solution by adjusting the token settings in the server manager platform. Will update if that is not the solution to this issue. -- Update: this is not the solution, did not work