Issue #2417πŸ’¬ AnsweredOpened November 16, 2019by Lakshit-Singhal0 reactions

API in Component not working after Deployment

Quick answerby artf

It only works when i drop it on the editor and not when it loads as a deployed url If you load stuff from some kind of storage (eg. DB) in your "deployed url", be sure to have a correct remote setup

Read full answer below ↓

Question

Block.js => Component.js => We are able to call the API and it works in Deployment when we are passing the whole html with script, body, style in Content attribute of Block Manager But when the API is called through the Component it's not working when the page loads in deployment. It only works when i drop it on the editor and not when it loads as a deployed url. Ex:

Answers (3)

artfβ€’ November 17, 2019

It only works when i drop it on the editor and not when it loads as a deployed url

If you load stuff from some kind of storage (eg. DB) in your "deployed url", be sure to have a correct remote setup

Lakshit-Singhalβ€’ November 18, 2019

@artf I understand your concern but in the deployed version API calls inside blockmanager content are working only the component api's are not getting called. So is it a problem with remote setup or something else ?

KIndly help me regarding the issue ... Thanks in Advance!

artfβ€’ November 19, 2019

So is it a problem with remote setup or something else ?

Yeah, as you described it might be an incorrect storage setup (check also errors/warning in console)

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.