iTwin / itwin-unreal-plugin

Apache License 2.0
11 stars 4 forks source link

Schedule Unauthorized #16

Closed MortonPriceBBV closed 1 week ago

MortonPriceBBV commented 2 weeks ago

Hello, i have created a new project in Control, created a new schedule in Synchro 6.5.

However when i add the iModel in Unreal, i cant see to get the schedule to come through. i get the below error message

LogITwinHttp: Error: Request to https://synchro4dschedulesapi-eus.bentley.com/api/v1/schedules?contextId=5bf1c042-2379-40d1-8e84-b4f8789d1d22&pageSize=100 failed with code 401: Unauthorized ITwinS4DImport: Warning: No NextGen schedule found, trying Legacy...

GhisBntly commented 1 week ago

Hello, thanks for the feedback,

The error on "NextGen" schedule is not really an error, sorry about that. It will no longer show in next version. But if the schedule was not downloading, I suspect you had a second error just after this one, about the "Legacy" schedule, right? This would be the same issue as #15 which we are currently investigating.

You might have more success by doing "ResetSchedules" after the UpdateIModel call (after entering "play-in-editor" mode), possibly hitting UpdateIModel again after that... The fact that it seems to randomly work makes it very hard to understand why the token would be rejected "often but not always" :-/

GhisBntly commented 1 week ago

Hello, I made a fix for the new version just released (0.1.10) which I hope should work for you: a colleague who had the same problem no longer sees it with the new version. The new version also brings important schedule-related improvements, and removes several limitations: please check the updated README when upgrading! Let me know how it goes,

MortonPriceBBV commented 1 week ago

Hi @GhisBntly, i can confirm this latest 0.1.10 alloys me to see the 4D content and allows playback. Thank you

GhisBntly commented 1 week ago

Glad to read that :-) Thanks for the prompt feedback!