14 May 2024 11:42 AM
Hello my friends!
I'm getting an error when I try to call an AppFunction on my custom App, I have already created and used AppFunctions, but I am having this error in a new App, I will put the error log below:
I don't know if it's just a missed config or something that I did wrong, thank you for your help. 🙂
Solved! Go to Solution.
15 May 2024 08:15 AM - edited 15 May 2024 08:19 AM
Hi @MaximilianoML,
Thanks for reaching out. Can you let us know which versions of Node.js and the Dynatrace App Toolkit you're using? You should be on the latest LTS of Node.js and the latest version for the toolkit. You could also try to delete the node_modules folder and follow up with an "npm install". Let us know if this helps.
Best,
Sarah
15 May 2024 02:01 PM
Hello, @SarahFaustmann,
First, thank you for your support!
Okay, I'll try to update my Node to the latest LTS version and then delete the Modules, when I have the results I will let you know.
Thank you again 🙂
17 May 2024 03:30 PM
Hello, @SarahFaustmann !
I apologize for the delayed response, I updated the Node to the LTS version but the problem persists, I will attach an image that shows the error (which also occurs during the deployment attempt).
20 May 2024 09:29 AM
I also got these errors when running the local server.
21 May 2024 09:34 AM
Given your receiving a 401 error, the next best practice would be to check if you have the required permissions within your environment. This will need to be changed in the IAM policies: https://docs.dynatrace.com/docs/manage/access-control/manage-user-permissions-policies/iam-policy-mg...
You can also read more about AppEngine Policies in this blog.
If your not able to do this you may need to contact your Dynatrace Admin to help you set this up. Hope this helps.
Thanks, Penny
21 May 2024 09:40 AM - edited 21 May 2024 09:47 AM
Hello, @PennyScully !
Actually I already have the permission to do, because I've developed a custom App with no problems, and this morning I tried to call my App Function and worked but to deploy doesn't work.
But since last week I'm getting these erros.
Thank you again! 🙂
22 May 2024 02:58 PM
What is the error message you're getting when deploying? The one that you sent before?
If yes, that's perhaps the issue with your authentication. Could be number of reasons such as auth token expired and so on.
Can you provide more details?
Thanks
22 May 2024 03:05 PM
Hello @imsingh !
Yeah, about this problem I already opened a ticket so we don't need to look into this... but about my AppFunction is not working again and I definitely didn't change anything... I don't know what's happening.
My Node is the LTS Version and I already deleted and run npm install again and no results.
22 May 2024 03:07 PM
Is it possible to share a redacted version of your app function? If not, I think going to support is the right approach if you can't share your things publicly.
22 May 2024 03:11 PM
I can, it's just a Fetch and return.
22 May 2024 05:04 PM
The issue that you have is with authentication and that's the reason for having issue with seriazling data and also when deploying.
I think support is the right thing to do. However, if you want to pinpoint the issue, you can remove the functionality of this app function and deploy the app. Most likely you'll be able to deploy.
Also, check the token value. Is it valid, does it have required permissions?