full-path / ridesheet

Google apps script support for a Google Sheets-based demand-responsive trip scheduling and reporting system.
MIT License
5 stars 4 forks source link

Mysterious failure during sendTripRequestResponses (not replicated) #13

Closed NomeQ closed 2 years ago

NomeQ commented 3 years ago

I have been unable to replicate this bug, but the provider failed during sendTripRequestResponses when attempting to parse the response from the ordering client.

Error:

SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at api_provider:218:33
    at Array.forEach (<anonymous>)
    at sendTripRequestResponses (api_provider:188:15)
    at __GS_INTERNAL_top_function_call__.gs:1:8

Be wary of potential race condition, or issue on particular data?