place-labs / google-staff-api

PlaceOS event management
Other
1 stars 1 forks source link

500 error for events request #22

Open ksra08 opened 1 year ago

ksra08 commented 1 year ago

Describe the bug When trying to generate reports the event request returns 500 error

To Reproduce On concierge, reports view select date and generate report.

Request URL without domain name : /api/staff/v1/events?zone_ids=zone-EmWVhHG3Bhz,zone-Epaq-dE1DaH,zone-Epa~Jlq--l0,zone-FBkg2YRRSH8,zone-FBkhCVwD3Af,zone-FBkxA1Php8u,zone-GJbiBgr2Nlw,zone-GJbee02sqj4&period_start=1667160000&period_end=1667246399 Payload Screen Shot 2022-10-31 at 3 06 52 pmAdditional context Response Preview:

Screen Shot 2022-10-31 at 3 11 46 pm

Response code

<!DOCTYPE html>

Error 500 at GET /api/staff/v1/events - Bad Request
Error 500 at GET /api/staff/v1/events

Bad Request

See raw message
                        Bad Request
                        {
                          "error": "invalid_grant",
                          "error_description": "Invalid email or User ID"
                        }
                
No code available.
No code available.
No code available.
->
No code available.
No code available.
No code available.
No code available.
No code available.
->
No code available.
run
No code available.
???
No code available.
Params
zone_ids
"zone-EmWVhHG3Bhz,zone-Epaq-dE1DaH,zone-Epa~Jlq--l0,zone-FBkg2YRRSH8,zone-FBkhCVwD3Af,zone-FBkxA1Php8u,zone-GJbiBgr2Nlw,zone-GJbee02sqj4"
period_start
"1667160000"
period_end
"1667246399"
Request info
URI:
mysmartoffice-stg.mer.pwc.com/api/staff/v1/events
Query string:
zone_ids=zone-EmWVhHG3Bhz%2Czone-Epaq-dE1DaH%2Czone-Epa~Jlq--l0%2Czone-FBkg2YRRSH8%2Czone-FBkhCVwD3Af%2Czone-FBkxA1Php8u%2Czone-GJbiBgr2Nlw%2Czone-GJbee02sqj4&period_start=1667160000&period_end=1667246399
Headers
X-Request-ID
["9b84f607-0c5e-40a6-ac2a-442c52554e47"]
Content-Type
["text/html"]
w-le commented 1 year ago

sravani will re-test with a different user account first to confirm. the results above where from a user who may no longer exist in that google instance (ex staff)

stakach commented 1 year ago

Yeah definitely looks like the user doesn't exist in Google anymore image

ksra08 commented 1 year ago

@stakach Noticed an other issue with user account william.le@testenv.pwc.com . When trying to book a room availability request was returning 500 error. But after a page refresh it worked fine. Let me know if you need any more details for this one. image