ShapeDiver model embedding error - Cannot GET /ticket/

Hi,
I faced problems embedding a model into a website with a ticket I received.
The error message says: ‘‘Cannot GET /ticket/e7…’’
I am pretty sure that the ticket is valid since I got it from a ShapeDiver employee for a sample application.
Thank you in advance!

Best regards from Austria

PS: If any further information is needed, let me know…

Link to your model on ShapeDiver and the website where it is embedded would help us to understand the issue better. Also make sure you set up the embedding domains correctly, see links below for more details.

https://support.shapediver.com/hc/en-us/articles/360020861952-Whitelisting-domains-for-embedding
https://support.shapediver.com/hc/en-us/articles/360015097511-Embedding-an-iframe

Hi, thanks for your answer!
This is the model I should embed: https://app.shapediver.com/m/shapediver-api-demo-first-example
There is currently no website as I shall only make a sample UI. Everything consists of a HTML page, CSS for the grid and this JS: First steps with the API – ShapeDiver - Documentation and Support
I haven’t loaded it to a webserver yet, I develop locally with webstorm, so as far as I know it should not be a issue with domain whitelisting…

Best regards,
Alexander

This code example shows how to create simple UI and also contains the embedding ticket.

Find more examples in our CodePen library.

Hi,
I used exactly this example (without a few functions)
That’s my code:

var initSdvApp = function(/*event*/) {
    let _container = document.getElementById('sdv-container');
    let settings = {
        container: _container,
        ticket: "e74278a06a6bd5d76897ef02b915373db3e24ea5fc424e825939c018dbff08896a2f8ff8a896cda46bcb02d4e8d131f6edf7904966f1486ab957bbb8804df5e04e1f8059afaba5f1984a37b2748157d0e22877bacbe0b787a2f72c052896d9554cc4ce4fc7f4f16412630b9b48a490ab7363e258601a717fd25096a09afeec93-7cc5ee33d83d8bdecc77060b4561c243",
        modelViewUrl: "eu-central-1"
    };
    window.api = new SDVApp.ParametricViewer(settings);
};


if (document.readyState === "loading") {
    document.addEventListener("DOMContentLoaded", initSdvApp, false);
} else {
    initSdvApp();
}

The HTML is just a few divs, one of them with the ID sdv-container.
Do you know why I get this error with this embedding ticket?

Best regards,
Alexander

EDIT: That’s the error:
https://sdeuc1.eu-central-1.shapediver.com/ticket/e74278a06a6bd5d76897ef02b915373db3e24ea5fc424e825939c018dbff08896a2f8ff8a896cda46bcb02d4e8d131f6edf7904966f1486ab957bbb8804df5e04e1f8059afaba5f1984a37b2748157d0e22877bacbe0b787a2f72c052896d9554cc4ce4fc7f4f16412630b9b48a490ab7363e258601a717fd25096a09afeec93-7cc5ee33d83d8bdecc77060b4561c243

EDIT 2: When I include the line: modelViewUrl: "eu-central-1" I get an error 400, when I don’t include it, I get an error 404, maybe this is a important information…

Another thing I noticed is, that I cannot use even one of the sample codepen models locally on my pc.
No matter which ticket I use. The error looks a bit different, it says directly on the page that the model could not be loaded…

If the CodePen model doesn’t work tor you, upload your own model and set up embedding domains as explained in this Forum post:

You can find example Grasshopper models below in case you don’t have any:
https://support.shapediver.com/hc/en-us/articles/360031707851-Example-models-to-get-started

Hi, thank you for your help!
The problem is, that I have no paid account and that I should only embed one model for which I have a ticket. I don’t really understand why this does not work. I don’t use codepen, I develop locally, so it can’t be a domain issue in my understanding.
It’s very weird that this happens with the code from your ‘‘Get started’’ section of the API. When I copy the code to my webstorm project and don’t change anything but the ticket (except of a link to the JS file), it does not work. I get a error 400.
In my opinion it’s definitely not a issue of the code, since the blur effect when loading a model appears, just white and without model…
I would really like to finish the job.

Thank you!
Best regards,
Alexander