I am getting the following error: [GraphQL error]: Message: Task - graphql

I am getting this error (using prisma and graphql), still after looking it up I have no clue what's going on.
Would anyone please help? Thank you!
[Network error]: Error: Task
slick.basic.BasicBackend$DatabaseDef$$anon$2#3a22bdca rejected from
slick.util.AsyncExecutor$$anon$2$$anon$1#cfc0ea7[Running, pool size =
1, active threads = 0, queued tasks = 1000, completed tasks = 497]
Error: Task slick.basic.BasicBackend$DatabaseDef$$anon$2#3a22bdca
rejected from
slick.util.AsyncExecutor$$anon$2$$anon$1#cfc0ea7[Running, pool size =
1, active threads = 0, queued tasks = 1000, completed tasks = 497]
Any other information I can provide to help debugging?

Are you using Prisma's demo servers, and is it working correctly now?
I experienced the exact same error yesterday, even the same completed tasks = 497. In my troubleshooting, the same error happened when 1) I tried to view the Prisma admin console, and 2) when I tried to pull down the schema from Prisma, so I figured the error was coming from something on Prisma's end and it was out of my control.
Today I tried the same things again and they're working correctly! Hopefully they are for you too.

Related

Error: rpc error: code = Canceled desc = context canceled

I am using grpc go lang . and with that transformer . Don't know suddenly this error start appearing and no data is receiving on front end . Can any one please guide what is this error about ?
My log file :
2021/05/07 21:52:10 INFO: /api.VehicleService/GetVehicle
2021/05/07 21:52:10 ERROR: rpc error: code = Canceled desc = context canceled
2021/05/07 21:52:10 ERROR: rpc error: code = Canceled desc = context canceled
2021/05/07 21:52:10 ERROR: rpc error: code = Canceled desc = context canceled
and kindly let me know which file I need to paste here to get proper guideline. as I am new in this .
By seeing your log it seems that a context is canceled. The reason might because your client is canceling the context of the request.
Please provide your client and also your server code, I believe that will help us to help you.
Creating connection in client and method of server that this error happens inside of it.

How to set Execution Timeout in Hotchocolate 10.4.3

we are using Hotchocolate 10.4.3 for my .net core service.
we are using code first approach.
All settings are in startup.cs exactly similar to their Star War example.
Hotchocolate web site says default timeout for request is 30 sec but I found my application throwing Transaction error after 1 min.
I want to increase that to 2 min.
Also why server still executes everything even after timeout exception.
I always see Transaction error at end after all my code gets execute properly.
If everything is going to run properly why to even then throw error?
I'm still learning graphql. Please correct me if anything sounds incorrect.
In HotChocolate v10, you can set the execution timeout when you add the service in your Startup's ConfigureServices() method:
services.AddGraphQL(
SchemaBuilder.New()
.AddQueryType<Query>()
.Create(),
new QueryExecutionOptions { ExecutionTimeout = TimeSpan.FromMinutes(2) });
They have a good repo of examples here: https://github.com/ChilliCream/hotchocolate-examples
Documentation on the execution options: https://chillicream.com/docs/hotchocolate/v10/execution-engine/execution-options
EDIT: In v11, the syntax has changed:
services
.AddGraphQLServer()
.AddQueryType<Query>()
.SetRequestOptions(_ => new HotChocolate.Execution.Options.RequestExecutorOptions { ExecutionTimeout = TimeSpan.FromMinutes(10) });

Debugging topshelf as a service

I am having problems running TopShelf as a service and I am not getting much info to help troubleshoot. I am using dotNet core 2.2.
I get this error when I start it:
Error: 1053: The service did not respond to the start or control
request in a timely fashion.
Event logs show:
A timeout was reached (30000 milliseconds) while waiting for the Test service to connect.
The Test service failed to start due to the following error: The service did not respond to the start or control request in
a timely fashion.
It message shows a 30 second timeout in the error popup happens in about 1 second. I don't think its a time out.
I my current setup I am using an IHostedService, but I have tried it without this. Here is the current setup.
var hostBuilder = SetupHost();
var rc = HostFactory.Run(x =>
{
x.Service<IHost>(s =>
{
s.ConstructUsing(name => hostBuilder.Build());
s.WhenStarted(tc =>
{
_logger = tc.Services.GetRequiredService<ILogger<Kickoff>>();
tc.StartAsync();
});
s.WhenStopped(tc => tc.StopAsync());
});
x.RunAsLocalService();
x.SetDescription("Test");
x.SetDisplayName("Test");
x.SetServiceName("Test");
x.EnableShutdown();
x.OnException(p => ExceptionOccured(p));
});
If you see something glaring people let me know.
My main goal is to find a technique to troubleshoot this. I've tried logging to a file with system.io but it does not produce results. I don't know how to debug it or get meaning information.

Uncaught Error: Returned values aren't valid, did it run Out of Gas?

I'm listening to events of my deployed contract. Whenever a transaction gets completed and event is fired receiving the response causes following error:
Uncaught Error: Returned values aren't valid, did it run Out of Gas?
at ABICoder.push../node_modules/web3-eth-abi/src/index.js.ABICoder.decodeParameters
(index.js:227)
at ABICoder.push../node_modules/web3-eth-abi/src/index.js.ABICoder.decodeLog
(index.js:277)
Web3 version: 1.0.0-beta36
Metamask version: 4.16.0
How to fix it?
Try the command truffle migrate --reset so that all the previous values are reset to their original value
Throws the same error when inside a transaction it generates different events with the same name and the same arguments. In my case, this was the Transfer event from ERC721 and ERC20. Renaming one of them solves this problem, but of course this isn't the right way.
This is a bug in web3js, discussed here.
And the following change fixes it (source):
patch-package
--- a/node_modules/web3-eth-abi/src/index.js
+++ b/node_modules/web3-eth-abi/src/index.js
## -280,7 +280,7 ## ABICoder.prototype.decodeLog = function (inputs, data, topics) {
var nonIndexedData = data;
- var notIndexedParams = (nonIndexedData) ? this.decodeParameters(notIndexedInputs, nonIndexedData) : [];
+ var notIndexedParams = (nonIndexedData && nonIndexedData !== '0x') ? this.decodeParameters(notIndexedInputs, nonIndexedData) : [];
var returnValue = new Result();
returnValue.__length__ = 0;
Edit: Also downgrading to web3-1.0.0.beta33 also fixes this issue too.
Before even checking your ABI or redeploying, check to make sure Metamask is connected to whichever network your contract is actually deployed too. I stepped away and while i was afk Metamask logged out, I guess I wasn't watching closely and I was connected to Ropsten when I working on localhost. Simple mistake, wasted an hour or so trying to figure it out. Hope this helps someone else out!
This happened to me on my react app.
I deployed to contract to Ropsten network, but metamask was using the Rinkeby aaccount. So make sure whichever network you deployed, metamask should be using account from that network.
The solution for me was changing of provider. With Infura the error is gone, but with Alchemy is still happening.
Please check your Metamask Login, This issue is generally populated when you are either log out of the Metamask or worse case you have 0 ether left at your account.
This can also happen when the MNEMONIC value from Ganache is different from the one you have in your truffle.js or truffle-config.js file.

Pinterest Authentication with iOS-PDK

I have been struggling with the simple task of authenticating with the ios-pdk. This has worked for me in the past but it is not consistent. I have followed all the instructions I can find: set up a re-direct uri and I am using the the latest XCode 7 with Swift 2. I am concerned it may be related to my latest upgrade. My call looks like this:
let permission = [PDKClientReadPublicPermissions]
PDKClient.sharedInstance().authenticateWithPermissions(permission,
withSuccess: { (responseObject :PDKResponseObject!) -> Void in
print("success PDKResponseObject: \(responseObject)")
}) { (err :NSError!) -> Void in
print("error NSError: \(err)")
}
Over the past few days, sometimes I receive a success and other days I receive an internal server error! Has anyone seen this behavior?
Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: internal server error (500)" UserInfo={com.alamofire.serialization.response.error.response= { URL: https://api.pinterest.com/v1/me/?access_token=[access_token_here]&fields=counts%28pins%2Clikes%2Cboards%29%2Cid%2Cbio%2Clast_name%2Ccreated_at%2Cusername%2Cimage%2Cfirst_name } { status code: 500
Thanks, Anita
i think this may have been fixed with this pull request: https://github.com/pinterest/ios-pdk/commit/4386ef09ee988de1f73511552fb3e35d721962b6
I realized that unauthorized error I was receiving was due to the fact that the account I was testing with was not listed as a collaborator for my app.

Resources