[Shapediver] Model does not allow direct embedding

Hello,

I’m trying to embed this model ShapeDiver into a web page for my client.

I used the exact code shown here to start : ShapeDiver 3D Viewer Index , and paid special attention to the modelViewUrl: 'eu-central-1' parameter, as well as the ticket.

On the page, which lives on a whitelisted domain, instead of the viewer, I get :

# We are sorry
Model does not allow direct embedding

Here’s what is in the console :

ERROR.CommPlugin.CommPlugin_1.CommPlugin.modelViewAjax : Request error: Bad request (400), Model does not allow direct embedding Error: Request failed with status code 400

I am sure of the domain and already removed/re-added it to be sure it wasn’t causing this problem.

Is it the model itself that causes a problem ?
Thank you,
Lucas

Please go to the model view page, open the “Developers” tab and make sure you copy and paste both exactly the ticket and the model view url as they are displayed there (and not in the example you refer to). Let me know if the problem persists once this is done.

1 Like

Hello and thank you for your reply.
I temporarily hardcoded the values (pasted after clicking the “copy” icon in the developers tab) in my template instead of fetching them from our DB, but this did not change the outcome.

I just reviewed your account and realized that you have a Designer plan, which does not allow direct embedding, only iframe embedding. You need to upgrade to Designer Plus or Business in order to use direct embedding. See the differences between plans here: Pricing | ShapeDiver

Oh, okay. Thank you for this information, I’ll follow up with my client on that.

The product would benefit of :

  • an error message specific for this account plan problem
  • information in the model’s “developer” pane indicating that the current plan does not allow direct embedding

Thank you for your feedback, this is actually a bug that your message helped me identify and file for the team. There should be a message displayed in your case. This will be fixed shortly.

1 Like