can’t use google api
-
when i use restriction on google translate api and add the referrer http, it didn’t work. and the page show below code.
i closed the restriction, it didn’t solve, and still show below code.
and i submit a ticket, i haven’t get reply more than one day.
HTTP Referrer: https://sunsgoods.com
Use this HTTP Referrer if the API lets you restrict key usage from its Dashboard.Response: Array ( [code] => 200 [message] => OK ) Response Body: { "message": "Slim Application Error", "exception": [ { "type": "InvalidArgumentException", "code": 0, "message": "Site not found.", "file": "/sites/mtapi.translatepress.com/files/src/Translation/Translation.php", "line": 56 } ] } Entire Response From wp_remote_get(): Array ( [headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [server] => nginx [date] => Thu, 24 Oct 2024 08:08:40 GMT [content-type] => text/html; charset=UTF-8 [vary] => Accept-Encoding [x-frame-options] => SAMEORIGIN [x-content-type-options] => nosniff [x-xss-protection] => 1; mode=block [strict-transport-security] => max-age=31536000; includeSubDomains [content-encoding] => gzip ) ) [body] => { "message": "Slim Application Error", "exception": [ { "type": "InvalidArgumentException", "code": 0, "message": "Site not found.", "file": "/sites/mtapi.translatepress.com/files/src/Translation/Translation.php", "line": 56 } ] } [response] => Array ( [code] => 200 [message] => OK ) [cookies] => Array ( ) [filename] => [http_response] => WP_HTTP_Requests_Response Object ( [data] => [headers] => [status] => [response:protected] => WpOrg\Requests\Response Object ( [body] => { "message": "Slim Application Error", "exception": [ { "type": "InvalidArgumentException", "code": 0, "message": "Site not found.", "file": "/sites/mtapi.translatepress.com/files/src/Translation/Translation.php", "line": 56 } ] } [raw] => HTTP/1.1 200 OK Server: nginx Date: Thu, 24 Oct 2024 08:08:40 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: close Vary: Accept-Encoding X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff X-Xss-Protection: 1; mode=block Strict-Transport-Security: max-age=31536000; includeSubDomains Content-Encoding: gzip { "message": "Slim Application Error", "exception": [ { "type": "InvalidArgumentException", "code": 0, "message": "Site not found.", "file": "/sites/mtapi.translatepress.com/files/src/Translation/Translation.php", "line": 56 } ] } [headers] => WpOrg\Requests\Response\Headers Object ( [data:protected] => Array ( [server] => Array ( [0] => nginx ) [date] => Array ( [0] => Thu, 24 Oct 2024 08:08:40 GMT ) [content-type] => Array ( [0] => text/html; charset=UTF-8 ) [vary] => Array ( [0] => Accept-Encoding ) [x-frame-options] => Array ( [0] => SAMEORIGIN ) [x-content-type-options] => Array ( [0] => nosniff ) [x-xss-protection] => Array ( [0] => 1; mode=block ) [strict-transport-security] => Array ( [0] => max-age=31536000; includeSubDomains ) [content-encoding] => Array ( [0] => gzip ) ) ) [status_code] => 200 [protocol_version] => 1.1 [success] => 1 [redirects] => 0 [url] => https://mtapi.translatepress.com/translations [history] => Array ( ) [cookies] => WpOrg\Requests\Cookie\Jar Object ( [cookies:protected] => Array ( ) ) ) [filename:protected] => ) )
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.