Google Drive: GoogleJsonResponseException: Internal Error 500 OK - google-drive-api

Hii I am stuck with the same error.
I am trying to call specific folder from Drive.
//retrieving files from Drive rootFolder<br>
Children.List request = service.children().list(root_ID);
//setquery to get file with title:Books <br>
request.setQ("title = 'Books'");
//executed the request to retrieve the file list<br>
ChildList children = request.execute();//occured error executing this line
ERROR:com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 OK
Coding language: JAVA
OS: Windows 7
Server: Apache Tomcat 7.0
I request you to provide info on how you were able to solve this.

Related

Error reading credential file from location in xamarin.forms while connecting to Cloud Firestore

I am developing a mobile application in xamarin.forms. I will use Google CloudFirestore as Cloud Database. When I want to connect to the database, I get the following error:
One or more errors occurred. (Error reading credential file from location D:\ yemekbagisiyapbucak.json: Could not find file "/D:\ yemekbagisiyapbucak.json"
Please check the value of the Environment Variable GOOGLE_APPLICATION_CREDENTIALS)
public static FirestoreDb db;
path = "D:\\yemekbagisiyapbucak.json";
Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", path);
db = FirestoreDb.Create("yemekbagisiyapbucak");
At first, please make sure the .josn file is in the path you set. var path = Path.Combine(FileSystem.AppDataDirectory, "yemekbagisiyapbucak.json"); get different path on different platforms.
So you can debug it and check the value of the path, and then copy the .josn file to the path.
If you need more information, please check the following link:Connecting to Google cloud firestore in a cross platform mobile app (xamarin c#)

Not being able to configure Timezone gem

Trying to configure lookup from the timezone gem;
https://github.com/panthomakos/timezone
I get a 403 when I use google configuration
I am adding this code:
Timezone::Lookup.config(:google) do |c|
c.api_key = 'your_google_api_key_goes_here'
c.client_id = 'your_google_client_id' # if using 'Google for Work'
end
To a file in initializers called timezone.rb and I I see on google dev cloud Time Zone API is enabled , and I have restarted the application
I am getting:
*** Timezone::Error::Google Exception: 403 Forbidden
when I try:
Timezone.lookup(-34.92771808058, 138.477041423321)

Impossible to retrieve files from an FTP in WinSCP - Bad message

I use WinSCP 5.17 to retrieve files from an FTP, when I retrieve files from the root folder of the FTP all works, but as soon as I try to retrieve the files from the sub-folder it doesn't work.
Here is the instruction I use:
get /Clients/Folder2/Folder3/*.* F:\folder1\folder2\
and this is the error message:
Error listing directory '/Clients/Folder2/Folder3'.
Bad message (badly formatted packet or protocol incompatibility).
Error code: 5
Error message from server: Bad message
Thanks for your help.
Finally I solved the problem, I generated the script from WinSCP GUI and it works.
open ftps://username:password#ftp-adresse.azure.com/ -certificate="ee:5f:af:7c:26:6b:bb:6f:cd:86:6a:2c:03:1e:8f:ab:e7:63:fd:43" -rawsettings FollowDirectorySymlinks=1
cd /Clients/folder2/folder3
lcd "F:\folder1\folder2"
get "*.xlsx"
exit

Angular 7 - Is there a way to load/import json files when angular app is offline?

I have an application that retrieves config information from a json file using "httpClient.get".
The problem comes in when I run the application offline, as in, I open the "index.html" file, the service fails with an error "Http failure response for ./assets/config.json: 0 Unknown Error".
Example code:
let testUrl = "./assets/test.json";
let test = await this.httpClient.get(testUrl).toPromise();
Is there a way to load/read files in Angular 7 when in offline mode?

payment module error 500

I recently move to a new server. During the new setup, a payment module (vpos), had the ionCube Loader which cannot work with temp URL. Message that the module work with the IP of the domain.
To check if the magento works ok with orders i rename the folder in app/code/local/mage/module_name_folder so everything loads ok.
My magento site is again on air with the domain point to the new server.
When i try to rename again the folder to have this module, i get error 500 in checkout page.
2017-05-20T09:12:12+00:00 ERR (3): Warning: include(Mage/Empbankr/Model/Emppay.php): failed to open stream: No such file or directory in /home/username/public_html/commerce/lib/Varien/Autoload.php on line 94
Mage/Empbankr/Model/Emppay.php' for inclusion (include_path='/home/username/public_html/commerce/app/code/local:/home/username/public_html/commerce/app/code/community:/home/username/public_html/commerce/app/code/core:/home/username/public_html/commerce/lib:.:/opt/cpanel/ea-php55/root/usr/share/pear') in /home/username/public_html/commerce/lib/Varien/Autoload.php on line 94
i have turn compilation off, clear all magento caches automated and manual.
i remove completely memcached through local.xml
The same error again. Does anyone have face the issue opr any idea?