Internal Server error in GoogleDrive V2 API when using maxResults param [closed] - google-drive-api

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 25 days ago.
Improve this question
I am using GoogleDrive's V2 java client library to list the files from my GDrive.
I am getting the below error from Google end frequently.
{
"code" : 500,
"errors" : [ {
"domain" : "global",
"message" : "Internal Error",
"reason" : "internalError"
} ],
"message" : "Internal Error"
}
We have found that while we set the maxResults to more than 150 we are facing this error frequently for particular users.
Can someone please help on this?

Related

Invalid number of parameters [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 days ago.
Improve this question
Actually I have to send the automate mail to those address while I am running the script it is showing "Invalid number of parameters" Error. Below code
Sub Test
If SendMail("ClareJ#clarejeffersoncorp.com", "mail.johnsmithcorp.com", "John Smith", "JohnS#johnsmithcorp.com", "Notification", "Hello Clare, Your application is nice.", "C:\File1.txt", "C:\File2.txt") Then
Log.Message "Mail was sent"
Else
Log.Warning "Mail was not sent"
End If
End Sub
I tried the above code it is showing "Invalid number of parameters" error.
My expectation is the mail has to be sent.

How to make a web3 transaction? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 months ago.
Improve this question
How to make web3 transaction? I stack at:
And getting errors: Invalid parameters: must provide an Ethereum address
But my addresses are all right.
web3.eth.sendTransaction({
from: paymentAddress,
to: paymentAddress,
value:Web3.utils.toWei(amountEth.toString(), 'ether')
}, (err, transactionId) => {
if (err) {
console.log('Payment failed', err);
divMessage.style.display = "block";
$('#divMessage').html('Payment failed');
} else {
}
})
And get error web3.toWei is not a function
I solve it. I have an issue with copy past. I probably get virus and when I copy my adress I get other adress.
I checked my real address with:
window.ethereum.selectedAddress

Angular 13: 415 Error Unsupported Media Type, on Delete [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
my Services.ts
deteleComentario(id: number): Observable<any>{
return this.http.delete(this.myAppUrl + this.myApiUrl + id);
}
my list-Comment-Component.ts
eliminarComentario(id: any ){
this.comentarioService.deteleComentario(id).subscribe(data => {
this.getComentarios();
}, error => {
console.log(error);
}
);
}
And my Api, NetCore with Mysql it`s work fine in GET, POST, GET{ID}, PUT{ID}, DELETE{ID}
any suggestion what could be the problem
The 415 Unsupported Media Type is a client-side error that indicates the request entity has a media type that the server or resource does not support. The response code may still be returned if the contents of the request body were not supported by the server. For example, a server might support specific JSON bodies, but the payload contents didn't validate, perhaps because it was missing a required property.
For example, the client uploads an image that was not in one of the formats (e.g., JPEG, PNG), or a video that is not in an accepted format (e.g., MPEG). The best way to fix it is to remove the image or video and upload a file in one of those formats.
Please see documentation for more information.

Using events.patch in Google Apps script [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I'm writing a Google apps script to update an event. I tried using the path API like below:
event_ins.setVisibility('private');
Logger.log('Making event %s %s private %s',calendarId, event_ins.summary, event_ins);
Calendar.Events.patch(event_ins,calendarId, eventID_ins);
I get the following error message:
11:28:30 AM Error HttpResponseException: Response Code: 404. Message: Not Found.
I tried using the update method instead
Calendar.Events.update(event_ins,calendarId,eventID_ins);
I'm still getting the same error.
The examples in Google's API documentation does not use Google script. I tried searching example code and I found similar usage. For instance this is from here :
event = Calendar.Events.patch(event, calendarId, eventId, {
sendNotifications: true
});
I would appreciate any help to get this working.

details of success and error responses in rest api

i am writing a rest api in node js and using mssql as my db. I have dilemma regarding the details of success and error responses that the api should return as per rest guidelines. For example if there is an error for key constraints while doing db operations, should the error message be like this
{
"error": {
"code": 500,
"message": "Internal Server Error"
}
}
Or does it needs to be more specific about the error details like the table details. Is it right to give away the internal details through the errors? Does status code needs to be part of the json object? Also, whether the success messages should be more general like "Record created successfully" with 200 code or more specific?
Always think in your final user. If you return the full error message, it will help him? Maybe the user did a wrong request that caused the internal fail. If not, turn it clear and log the error!
For example, when user gets this response, he should repeat the request? Or it's server fault and should wait for fix? So, I suggest something like:
{
"error": {
"code": 1000,
"href": 'http://mywikiapage.com/errors/1000',
"message": "Sorry, we're experiencing some issues. Try again later."
}
}
Note that error code has changed. Its new "custom" code could refer to a wiki page where it gives more details about the error itself. Furthermore, user always can get the 500 result code from HTTP response.
I also would like to suggest the reading of this other SO question