Redirect adding 1/2 second delay! -- moving from old O365 APIs to Microsoft Graph -


we have existing code uses old office365 api. in api, first step before oauth use discovery api identify appropriate end points api user signing in. different user domains had different end-points (something https://foo.my-sharepoint.com/.... subseqently, api use rest methods against end-point.

now trying move graph api. , find performance worse. root cause seems each api call graph api leads 302 redirect after 1/2 second delay! instead of looking appropriate endpoint, seems happen inefficiently on every single api call.

has else seen this? workarounds? making our system way slower.

some details requested @baywet ...

the original request fetch content of file identified file path (constructed c# sdk): https://graph.microsoft.com/v1.0/me/drive/root:/appsheet//nationalparks.xlsx:/content

after 0.6 second delay, gets 302 redirect to: https://1track-my.sharepoint.com/personal/praveen_1track_onmicrosoft_com/_layouts/15/download.aspx?uniqueid=d9019efd-887e-4c6c-80ce-8399afa9131c&translate=false&tempauth=eyj0exaioijkv1qilcjhbgcioijub25lin0.eyjhdwqioiiwmdawmdawmy0wmdawltbmzjety2uwmc0wmdawmdawmdawmdavmxryywnrlw15lnnoyxjlcg9pbnquy29tqgqxmdzlmtdllwzhy2itndg5mc1iowvhlwi3oduyntawmjjhmsisimlzcyi6ijawmdawmdazltawmdatmgzmms1jztawltawmdawmdawmdawmcisim5izii6ije1mdm0ntc2njgilcjlehaioiixntazndyxmjy4iiwizw5kcg9pbnr1cmwioijxm0fmzzivnur3u1m1we9ornd4rdawcxznk3hpujniafjoskiyvm12dghzpsisimvuzhbvaw50dxjstgvuz3roijoimtywiiwiaxnsb29wymfjayi6ilrydwuilcjjawqioijpv1kzwvraavlqtxrnv0k0wkmwmfpurmxmv0ptt1dvdflxsmpzek16tm1zek9xumoilcj2zxiioijoyxnozwrwcm9vznrva2vuiiwic2l0zwlkijoitmpzeu0ywtnpr1l0txprnfptmdbnak5qtfdfme5ea3robuzowwpkae9ewtbprfk1iiwibmftzwlkijoimcmuznxtzw1izxjzaglwfhbyyxzlzw5amxryywnrlm9ubwljcm9zb2z0lmnvbsisim5pasi6im1py3jvc29mdc5zagfyzxbvaw50iiwiaxn1c2vyijoidhj1zsisimnhy2hla2v5ijoimgguznxtzw1izxjzaglwfdewmdm3zmzlogewyzk1njlabgl2zs5jb20ilcj0dci6ijailcj1c2vqzxjzaxn0zw50q29va2llijpudwxsfq.z0vsdldztnbsy2dhvzjxsetndtfpbzd6mdftk3lvc0nrzu02dwxpvhvjtt0&apiversion=2.0

"1track-my.sharepoint.com" actual o365 site. old api figure out during initial discoveryapi phase pay cost of lookup once , directly hit appropriate endpoint.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -