Forum in maintenance, we will back soon 🙂
Notifications
Clear all
Small error in script.js in Connect The UI With The Snippet - Wrong action is invoked
Building Online Tools
2
Posts
2
Users
2
Reactions
127
Views
Topic starter
Hi,
i'm learning to re-create the hook-generator and copied the script.js from the course page. But i always got an error.
There is a mismatch in the script.js
var data = new FormData();
data.append('action', 'generate_hooks_basic');
data.append('topic', topic);
data.append('usage', usage);
Â
It is calling a different action, than we have created in our snippet: called openai_generate_text_basic
Â
If i replace in script.js the action name with openai_generate_text_basic it is working fine (after adding the CORS headers).
Have i missed a step?
Keep up the excellent work!
This topic was modified 5 months ago 2 times by Rene Koch
Posted : 08/04/2024 8:13 am
Husein Aboul Hasan reacted
@rene-koch The generate_hooks_basic is anothet function which has a different prompt, so make sure you create the code snippet and add the respective function to it if you want to test it too. And if it still doesn't work please attach the code and your website's link so that i can test it from my side.
Posted : 08/04/2024 11:48 am
SSAdvisor reacted
Forum Information
Our newest member: Shaik Abdul Raheem
Latest Post: Affiliate tool.
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed
[the_ad_group id="312"]