Georgi Koemdzhiev Posted April 28, 2020 Share Posted April 28, 2020 Hello, I am trying to test Spotfire 10.8.1 with our web app (i.e. mashup) which was using 10.0.1 before. So I changed all of our URLs to be pointing to our the 10.8.1 Spotfire environment. However, when I do that, I get 302 followed by 404 errors in my browser console: I have not changed anything else besides the URLs in our app. We are using that URL to request the API from the server - "https://my-domain.com/spotfire/wp/GetJavaScriptApi.ashxVersion=7.14" Is there anything that I could be missing here Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted April 28, 2020 Share Posted April 28, 2020 Can you try the URLhttps://my-domain.com/spotfire/wp/GetJavaScriptApi.ashxVersion=7.12 and see if it helps. Link to comment Share on other sites More sharing options...
Tyger Guzman 2 Posted April 28, 2020 Share Posted April 28, 2020 Check the documentation :https://community.spotfire.com/wiki/tibco-spotfire-javascript-api-overview versions 7.14 and above require to usehttps://spotfire-next.cloud.tibco.com/spotfire/js-api/loader.js and also has a slightly different script to enable the api. Link to comment Share on other sites More sharing options...
Georgi Koemdzhiev Posted April 28, 2020 Author Share Posted April 28, 2020 Thank you for your suggestion Shandilya but I am getting the same errors in the browser console as in the picture. Link to comment Share on other sites More sharing options...
Georgi Koemdzhiev Posted April 28, 2020 Author Share Posted April 28, 2020 I see, so it won't work until I change the existing code to use the "loader" method Link to comment Share on other sites More sharing options...
Tyger Guzman 2 Posted April 29, 2020 Share Posted April 29, 2020 That's what suspect from The JavaScript API is accessed by the following:TIBCO Spotfire Server 7.14 and later:<script src="https://spotfire-next.cloud.tibco.com/spotfire/js-api/loader.js"></script> The API version is specified in the createApplication call, see the "Open the Analysis" section below. Or talk with your admins to ensure the file is even on the server. Can you go directly to the URL Link to comment Share on other sites More sharing options...
Georgi Koemdzhiev Posted April 29, 2020 Author Share Posted April 29, 2020 You were right, I changed the way how we download the API and it works now. Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now