Failed Query nameOf in Pallet Interactor - substrate

I've added Nicks pallet as in Add a Pallet to Your Runtime tutorial.
The pallet successfully added and in the front-end it can interact with the Pallet Interactor submitting Exterinsic setName. But it's failed when I query the nameOf from Nicks pallet for the given account (Alice).
Where should I look at what went wrong? Thanks in advance!

Related

How to check "storage Value" of "ink!" in latest "Polkadot/Substrate Portal"

I followed the substrate tutorial and ran the "cargo contract new
flipper" command.
I created a wasm file and a metadata.json file with "ink!" and
uploaded them on the chain.
I have deployed.
I would like to call "send as RPC call" as described on this site
(https://substrate.dev/substrate-contracts-workshop/#/0/calling-your-contract).
However, the latest "Polakadot/Substrate Portal"
(https://polkadot.js.org/apps) does not have "send as RPC call".
Please tell me how to check the value of storage.
I use Substrate rc-5 version.
I can not use "Send RPC Call" now. ## 2020/8/15
But I down grade Substrate to rc-4.
I can use it.

Legder Nano S can't effective authorization

I use ledger nano S for https://wallet.betanet.near.org/, and the ledger nano S successful configuration. after I delete all key from my account and just keep 1 Full Access Key(create by ledger nano S).
Now I can't add other fullaccess key. Whatever method is used.when I did: near login --useLedgerKey. the web verify page will show:
An error occurred while approving this action. Please try again!
When I did add Seed Phrase enable, on the [Enter the following word from your recovery phrase to complete the setup process.] page, When I confirm it in the Ledger it will show:
An error occurred while setting up seed phrase recovery. Please try again!
Actually , my ledger still will show confirm info:
DANGER: This gives full access to a device other than Ledger
when I make a transaction push √ button. it still show the error:
An error occurred while approving this action. Please try again!
I think it's a bug, when use just keep 1 access key form ledger nano S.
enter image description here
enter image description here
my account : catcatcat.test
This is probably an error on the NEAR Wallet side. If you don't mind me asking, what is your account ID? I can better understand what is happening by viewing the chain activity associated with this.
Unfortunately it takes time to get new app version published in Ledger Live (even in Developer Mode). First version that got published (1.0.0) has the bug with adding full access keys.
As far as I know this bug is fixed in latest version available here:
https://github.com/LedgerHQ/app-near/pull/2
Best shot for now is to try compiling it from source following instructions in README:
https://github.com/LedgerHQ/app-near/blob/6a8d3263896fdf65ac06961c6e7ed6a9912d5480/README.md

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.

Namespacing in Laravel Spark install

I am trying to install Laravel Spark into an existing app. I have not changed the default namespace of "App".
I get the following error on install:
Class 'Laravel\Spark\Providers\SparkServiceProvider' not found
How can get around this error?
It means you didnt attach a class for laravel to detect it ..
Go to App/Config..open app.php..
scroll down.. youll see a providers list.. add a new line to it like
Laravel\Spark\Providers\SparkServiceProvider::class,
Save and Try again :)

Credentials are Either Invalid or Unspecified

I am using bing Maps in my app. When i am using the Get Directions it's showing this error. How to solve it. I googled for hours but hasn't got any help. Pleas help.
These are the two services which i am hitting.
http://dev.virtualearth.net/webservices/v1/routeservice/routeservice.svc/mex
http://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc/mex
Or Please give me Step by Step Procedure to work with the bing maps.
Check the Bing Map Sample application given in MSDN .It has code which shows how to implement Bing Map.Hope this helps
The error you are getting is often due to missing or incorrect credentials. You need to have an API key to access the Bing Maps services. This blog post includes a description of how to get a key and set it in your project.

Resources