Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Office.js has not been fully loaded yet' when trying to call custom API #172

Closed
detilium opened this issue Aug 19, 2016 · 3 comments
Closed

Comments

@detilium
Copy link

I'm not sure whether this is okay to post here, but I think it might be somewhat to the generator and the code it creates.

I have a custom API in Azure AD and this is included in my endpoints like this:

endpoints = { 
  'https://some-sign-on-url.azurewebsites.net': 'client-id-for-api' 
}

From this I should be able to connect to my API correct?
Now whenever I call a request to the API, I expect it to return some data. Instead though, I'm getting the following console error:

SCRIPT5022: Office.js has not been fully loaded yet. Please try again later or make sure to add your initialization code on the Office.initialize function.

If you need further code, please tell me.

@beth-panx
Copy link
Member

The initialization function for Officejs is in the generated home.js file. Where do you put your initialization code?

@beth-panx
Copy link
Member

@ChristianHaase following up to see if you still need help 🤓

@detilium
Copy link
Author

Sorry for the late answer, but I do not need further help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants