Serverless Function Error

narmstrong
Contributor | Platinum Partner

I am getting the following error when visiting the endpoint.

 

{"error":"The endpoint GET endpoint/url has not been configured for portal portalID"}

I do not see anywhere to turn it on in the portal or in the console instructions. Is there a step by step somewhere?

 

Any help is appreciated.

Thanks 

Noah Armstrong | TSL Marketing
Senior Developer
6085 Marshalee Dr| Suite 100 | Elkridge, MD 21075
Contact Us

TSL Marketing
0 Upvotes
2 Replies 2
RMones
Contributor

Hi @narmstrong ,

 

Are u using a CMS developer Sanbox account?

 

Developers can experiment with serverless functions using their CMS developer sandbox account. API developer accounts and their test accounts can't currently use serverless functions, use a CMS Developer Sandbox account instead.

 

https://developers.hubspot.com/docs/cms/features/serverless-functions

 

Regards Ronald

narmstrong
Contributor | Platinum Partner

Hi @RMones ,

 

Thanks for replying. I am actually trying to apply it in an active account.

It just says it "isnt configured." I am asking how and where it gets configured.

I got my dev key for the account and I can list out the functions with 

 

hs functions list -a nameofaccount

 

But I would assume if I visited the endpoint and I console.logged("Hello World"); that it would show up not say 

 

{"error":"The endpoint GET endpoint/url has not been configured for portal portalID"}

 

Perhaps I am missing something?

 

Thanks for the help.


Noah Armstrong | TSL Marketing
Senior Developer
6085 Marshalee Dr| Suite 100 | Elkridge, MD 21075
Contact Us

TSL Marketing