Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with GoogleMaps API #21

Open
frmichel opened this issue Jan 22, 2024 · 0 comments
Open

Error with GoogleMaps API #21

frmichel opened this issue Jan 22, 2024 · 0 comments

Comments

@frmichel
Copy link
Owner

The service defined with the following config.ini file does not succeed:

custom_parameter[] =
api_query =  "https://maps.googleapis.com/maps/api/directions/json?destination=Paris&mode=car&origin=Nice&waypoints=optimize:true%7Clyon&key=<your key>"

The log shows this error:

Stack trace:
#0 /var/www/sparql-ms/vendor/ml/json-ld/FileGetContentsLoader.php(143): ML\JsonLD\Processor::parse()
#1 /var/www/sparql-ms/vendor/ml/json-ld/JsonLD.php(142): ML\JsonLD\FileGetContentsLoader->loadDocument()
#2 /var/www/sparql-ms/vendor/ml/json-ld/JsonLD.php(411): ML\JsonLD\JsonLD::expand()
#3 /var/www/sparql-ms/src/common/Utils.php(224): ML\JsonLD\JsonLD::toRdf()
#4 /var/www/sparql-ms/src/sparqlms/service.php(244): frmichel\sparqlms\common\Utils::translateJsonToNQuads()
#5 /var/www/sparql-ms/src/sparqlms/service.php(171): frmichel\sparqlms\queryWebAPIAndGenerateTriples()
#6 {main}
2024-01-20 23:18:36 ["uuepvo98gla0j"] service ERROR: Exception: Cannot query the Web API or transform its response to JSON-LD. in /var/www/sparql-ms/src/common/Utils.php:237
Stack trace:
#0 /var/www/sparql-ms/src/sparqlms/service.php(244): frmichel\sparqlms\common\Utils::translateJsonToNQuads()
#1 /var/www/sparql-ms/src/sparqlms/service.php(171): frmichel\sparqlms\queryWebAPIAndGenerateTriples()
#2 {main}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant