AWS Alexa skills kit SDK for node.js: Error when deploying - aws-lambda

Both my model and skill.json are up to date when I check ask diff, I made some changes to the lambda function in index.js, and when I tried to ask deploy, I got this error message:
[Error]: Failed to resolve the Lambda deploy state for arn:aws:lambda:xxx. Please make sure this Lambda resource is correctly mapped to the existing alexaUsage in the config file.
My understanding is that the config file is populated automatically and I didn't make any change to it... I'd appreciate it a lot if someone can help me understand this error.

Check if you have more than one profile configured in .ask/cli_config.
You can also back-up this file and create an empty cli_config file then execute ask init in the corresponding folder project to reconfigure the access token for the right account.

Related

On the google cloud console website in the APIs & Services I can't change a credential package in to an old package name?

This is the screen I get when I try to change the credentials:
I had made previously a credential using that package name:"com.CavernHead.MostAnnoyingChat" and then later deleted because I wanted to start over making my credentials on a clean slate. It seems that something about the old credentials still remain and is stopping me from changing my package name to the old one. I'm not even sure if it's essential for what i'm doing but it could be so I want to change the package name to com.CavernHead.MostAnnoyingChat.
just for context I ran in to this issue while trying to follow this tutorial and implement google sign in with playfab: https://learn.microsoft.com/en-us/gaming/playfab/features/authentication/platform-specific-authentication/google-sign-in-unity
Any help would be highly appreciated
thanks.

Heroku : Edit file without edit on github

I have a discord bot on heroku and I am using automatic deployment with github. I have a .json data file and I am trying to write data to it, but it doesn't seem to work. I guess this takes my data file straight from github and therefore remains empty. On my computer, it works well, I manage to write in my db.json but on heroku it does not work, I have no errors. I am using a relative path and not abosulu so I don't think the error is with my code. I don't know if I was clear
Thank you in advance

FAILED_PRECONDITION when trying to create a new Google API project

I am getting an error when attempting to create a new project for Google API at https://code.google.com/apis/console
I was hoping the error was temporary, but I have been unable to create a new project for a couple weeks now.
The error seems to have changed, as it used to include server ip information and a lot of other data. An example with some potentially private information removed:
APPLICATION_ERROR;google.cloudresourcemanager.projects.v1beta1/DeveloperProjects.CreateProject;com.google.apps.framework.request.StatusException:
generic::FAILED_PRECONDITION:
;AppErrorCode=9;StartTimeMs=1489595147198;tcp;Deadline(sec)=50.0;ResFormat=UNCOMPRESSED;ServerTimeSec=0.027545452117919922;LogBytes=256;FailFast;EffSecLevel=none;ReqFormat=UNCOMPRESSED;ReqID=removed;GlobalID=removed;Server=ip:port
Now the error is a lot shorter, although still seems to be related to the same cause:
com.google.apps.framework.request.StatusException: generic::FAILED_PRECONDITION:
The spinner in the dashboard appears to spin forever, while the error appears underneath alerts after a few seconds. I have tried numerous project names and all fail with the same error.
Is there some type of quota I am missing that is preventing this? The quota menu item requires me to select a project, which I don't have any.
Clicking on the error brings me to a page with the following message:
You don't have permissions to perform the action on the selected resource.
Make sure that the Google Developers Console is on for the user that is trying to create the project.
Admin.google.com > Apps > Additional Google services > Google Developers Console and turn on for any org or user that needs it.
Looks like there's another possible cause, in addition to the one that #AndrewL provided in his solution.
Short answer:
I ran into the same error when I attempted to associate a new GCP project with our billing account via Terraform. Our billing account has a default limit of 5 projects (which we had already met), and this blocked the association of new accounts and generated the Error 400: Precondition check failed., failedPreconditionerror message. To fix, I had to remove/delete one of the already associated projects before I could add a new one.
Long answser:
Here is the error message I encountered in Terraform (sensitive data and IDs redacted):
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
~ module.<MY MODULE PATH>.project
billing_account: "" => "<MY BILLING ACCOUNT ID>"
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
module.<MY MODULE PATH>.project: Modifying... (ID: <MY PROJECT ID>)
billing_account: "" => "<MY BILLING ACCOUNT ID>"
Error: Error applying plan:
1 error(s) occurred:
* module.<MY MODULE PATH>.project: 1 error(s) occurred:
* google_project.project: Error setting billing account "<MY BILLING ACCOUNT ID>" for project "projects/<MY PROJECT ID>": googleapi: Error 400: Precondition check failed., failedPrecondition
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
My billing account was at its maximum of 5 projects. As a test, I removed one of the projects and then ran Terraform again. It then successfully added the new project to the billing account. To double check, I attempted to add yet another new project to the billing account (to push the amount to 6) and then received the same error message again.
Straight up deleting one of the associated projects also works.
It stands to reason that requesting a limit increase for your billing account's associated projects will also fix this issue.
Another possible reason for this error can be accessing the .xlsx file. If you are accessing this file using Google spreadsheet then you need to save the .xlsx file in to save as google sheets by choosing the option available in the File menu at the top.
Thanks
Another possible reason for this is Organization policy, denying the particular API on ORG/Folder/project level.
For me the error was working because I was trying to read the file from a shared google folder. Check if the drive where the file lives is your drive and not a shared one.

Getting a 404 using App Harbor and BitBucket

I'm new to AppHarbour and I'm trying to deploy my MVC app on a free account.
I keep getting a 404 error.
The app is coming from Bit-bucket and it was deployed successfully.
In my Hostnames section i see the following
so i have added the following to the Hosts file in my machine:
176.34.122.158 camelotfaultmanagement.apphb.com
but i still get a 404 ..
What am i doing wrong ?
And a follow-up question how can i edit one of the files to be able to edit the connection ?string to my DB?
It looks like you may not have any successful builds yet - You have to push to Bitbucket to trigger your first build. You can see a list of builds on the app dashboard: https://appharbor.com/applications/camelotfaultmanagement
To use the built-in .apphb.com domain, you don't have to mess with any DNS setup.

APNS Error in registration. Error: Error Domain=NSCocoaErrorDomain Code=3000

Hello everyone i have beenn working in several projects and all push notification were working either on developemnt or prodcution. However i am not getting this error : "Error in registration. Error: Error Domain=NSCocoaErrorDomain Code=3000" since yesterday. I have tried to create a new provisioning but its shut down for maintenance. Is it due to this?
Thanks in advance.
Ensure the Bundle Identifier matches the one in your project's
plist.
Create a new App ID, and configure it for production/development
push before creating a new provisioning profile.
Make sure you're build and archiving on the right target, with the
right configuration. You might need to go back to project settings
and double check with the correct configuration selected (I use
release for this).

Resources