Help!

Hi , it’s possible to have support to translation PDF ( en to other language) ?
How I must do it?
I want test with postman and after compile java class.
Now I receive error 401 , Bearer error=“invalid_token”, error_description=“The issuer ‘https://api.groupdocs.cloud’ is invalid” , but the token is correct.

Can you help me for create correct postman request

Thank You

@enrico.fiorini
We are aware of this issue, the corresponding team is working on it, and it will be fixed quite soon, so kindly try later today. Also pay attention that you should provide as a value for “Authorization” key “Bearer {your_token}” not just obtained token.

Thank you very much , but the problem is present to many days. I try later today.
Hi.

Hi, when should the problem be resolved? I tried this morning and got the same error.
Thank You very much!
best regards

@enrico.fiorini
I forwarded your issue to the team, that is responsible for development and support of authentication in groupdocs.cloud. Currently there is no problem on their side. I would like to ask you to kindly share the details of your POST request to https://api.groupdocs.cloud/v2.0/translation/pdf

Hi, thanks
I forward you the token request and the PDF translation request without reference, but my test was done to verify the connection.
Best regards

Enrico


POST https://api.groupdocs.cloud/connect/token: {
“Network”: {
“addresses”: {
“local”: {
“address”: “192.168.1.221”,
“family”: “IPv4”,
“port”: 50485
},
“remote”: {
“address”: “74.113.210.20”,
“family”: “IPv4”,
“port”: 443
}
},
“tls”: {
“reused”: false,
“authorized”: true,
“authorizationError”: null,
“cipher”: {
“name”: “TLS_AES_128_GCM_SHA256”,
“standardName”: “TLS_AES_128_GCM_SHA256”,
“version”: “TLSv1/SSLv3”
},
“protocol”: “TLSv1.3”,
“ephemeralKeyInfo”: {},
“peerCertificate”: {
“subject”: {
“commonName”: “api.groupdocs.cloud”,
“alternativeNames”: “DNS:api.groupdocs.cloud”
},
“issuer”: {
“country”: “AT”,
“organization”: “ZeroSSL”,
“commonName”: “ZeroSSL ECC Domain Secure Site CA”
},
“validFrom”: “Jan 21 00:00:00 2025 GMT”,
“validTo”: “Apr 21 23:59:59 2025 GMT”,
“fingerprint”: “E7:2E:77:69:15:69:E8:64:38:05:BC:71:09:2F:A5:2C:02:E0:F9:D1”,
“serialNumber”: “1fb00ea159d0c5c85380ecd314ff7051”
}
}
},
“Request Headers”: {
“content-type”: “application/x-www-form-urlencoded”,
“user-agent”: “PostmanRuntime/7.43.0”,
“accept”: “/”,
“cache-control”: “no-cache”,
“postman-token”: “4f1f8bf9-33a1-4b23-9c0e-5372f4b99915”,
“host”: “api.groupdocs.cloud”,
“accept-encoding”: “gzip, deflate, br”,
“connection”: “keep-alive”,
“content-length”: “123”
},
“Request Body”: {
“grant_type”: “client_credentials”,
“client_id”: “a2780c6e-89c8-4b33-9da2-7d603a898cc9”,
“client_secret”: “d0c07818c712b1b5096d3d13ce5d26f6”
},
“Response Headers”: {
“date”: “Fri, 21 Feb 2025 13:36:01 GMT”,
“content-type”: “application/json; charset=UTF-8”,
“transfer-encoding”: “chunked”,
“cache-control”: “no-store, no-cache, max-age=0”,
“pragma”: “no-cache”,
“x-robots-tag”: “noindex, nofollow”,
“x-cluster”: “cloud-02”,
“content-encoding”: “br”,
“x-lb”: “TLR”
},
“Response Body”: “{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3NDAxNDQ5NjEsImV4cCI6MTc0MDE0ODU2MSwiaXNzIjoiaHR0cHM6Ly9hcGkuZ3JvdXBkb2NzLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmdyb3VwZG9jcy5jbG91ZC9yZXNvdXJjZXMiLCJhcGkuYmlsbGluZyIsImFwaS5pZGVudGl0eSIsImFwaS5wcm9kdWN0cyIsImFwaS5zdG9yYWdlIl0sImNsaWVudF9pZCI6ImEyNzgwYzZlLTg5YzgtNGIzMy05ZGEyLTdkNjAzYTg5OGNjOSIsImNsaWVudF9kZWZhdWx0X3N0b3JhZ2UiOiIzNjVmNDU3MS0xOGIwLTQ3YmItYTcwMi03MzQ2ZDJkYzRmNzciLCJjbGllbnRfaWRlbnRpdHlfdXNlcl9pZCI6IjEwMjU3NDIiLCJzY29wZSI6WyJhcGkuYmlsbGluZyIsImFwaS5pZGVudGl0eSIsImFwaS5wcm9kdWN0cyIsImFwaS5zdG9yYWdlIl19.ovBlrG4Lmx5_G6gwddMmoHvgUoqC1HXKPo40Y32AFNbQJp0QtoGYdJsMWZsIPE3NeuoiiBs_tFAA_7_BWJwKeH3PAwP5q_SucCfMQLJtbgP6WklosOoZoLi9lCqtaym_ejX4645t6E82QHjb6RvJS1e1RBRW6V-G2bpiJWiIb0l423EviQbBayiXU6F24ddbZhVDjMgwcWpC8dI3X306DOsEOHcuHk9xNXhN6XTyFlZR1BYqxaiAoKUzcWHLztX-I_iHzzZfObe2Q1jgQlLAzwbHmUM1IAhL-XcMI9YtGdCRgg5IzqjggbSUOYcKKVJKDEWEhAiDUI3l79LZD8juXA","expires_in":3600,"token_type":"Bearer"}”
}


POST https://api.groupdocs.cloud/v2.0/translation/pdf: {
“Network”: {
“addresses”: {
“local”: {
“address”: “192.168.1.221”,
“family”: “IPv4”,
“port”: 50485
},
“remote”: {
“address”: “74.113.210.20”,
“family”: “IPv4”,
“port”: 443
}
},
“tls”: {
“reused”: false,
“authorized”: true,
“authorizationError”: null,
“cipher”: {
“name”: “TLS_AES_128_GCM_SHA256”,
“standardName”: “TLS_AES_128_GCM_SHA256”,
“version”: “TLSv1/SSLv3”
},
“protocol”: “TLSv1.3”,
“ephemeralKeyInfo”: {},
“peerCertificate”: {
“subject”: {
“commonName”: “api.groupdocs.cloud”,
“alternativeNames”: “DNS:api.groupdocs.cloud”
},
“issuer”: {
“country”: “AT”,
“organization”: “ZeroSSL”,
“commonName”: “ZeroSSL ECC Domain Secure Site CA”
},
“validFrom”: “Jan 21 00:00:00 2025 GMT”,
“validTo”: “Apr 21 23:59:59 2025 GMT”,
“fingerprint”: “E7:2E:77:69:15:69:E8:64:38:05:BC:71:09:2F:A5:2C:02:E0:F9:D1”,
“serialNumber”: “1fb00ea159d0c5c85380ecd314ff7051”
}
}
},
“Request Headers”: {
“authorization”: “Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3NDAxNDQ5NjEsImV4cCI6MTc0MDE0ODU2MSwiaXNzIjoiaHR0cHM6Ly9hcGkuZ3JvdXBkb2NzLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmdyb3VwZG9jcy5jbG91ZC9yZXNvdXJjZXMiLCJhcGkuYmlsbGluZyIsImFwaS5pZGVudGl0eSIsImFwaS5wcm9kdWN0cyIsImFwaS5zdG9yYWdlIl0sImNsaWVudF9pZCI6ImEyNzgwYzZlLTg5YzgtNGIzMy05ZGEyLTdkNjAzYTg5OGNjOSIsImNsaWVudF9kZWZhdWx0X3N0b3JhZ2UiOiIzNjVmNDU3MS0xOGIwLTQ3YmItYTcwMi03MzQ2ZDJkYzRmNzciLCJjbGllbnRfaWRlbnRpdHlfdXNlcl9pZCI6IjEwMjU3NDIiLCJzY29wZSI6WyJhcGkuYmlsbGluZyIsImFwaS5pZGVudGl0eSIsImFwaS5wcm9kdWN0cyIsImFwaS5zdG9yYWdlIl19.ovBlrG4Lmx5_G6gwddMmoHvgUoqC1HXKPo40Y32AFNbQJp0QtoGYdJsMWZsIPE3NeuoiiBs_tFAA_7_BWJwKeH3PAwP5q_SucCfMQLJtbgP6WklosOoZoLi9lCqtaym_ejX4645t6E82QHjb6RvJS1e1RBRW6V-G2bpiJWiIb0l423EviQbBayiXU6F24ddbZhVDjMgwcWpC8dI3X306DOsEOHcuHk9xNXhN6XTyFlZR1BYqxaiAoKUzcWHLztX-I_iHzzZfObe2Q1jgQlLAzwbHmUM1IAhL-XcMI9YtGdCRgg5IzqjggbSUOYcKKVJKDEWEhAiDUI3l79LZD8juXA”,
“content-type”: “application/json”,
“user-agent”: “PostmanRuntime/7.43.0”,
“accept”: “/”,
“cache-control”: “no-cache”,
“postman-token”: “9043e9b2-4ec8-466b-b31b-c090be0a8e2c”,
“host”: “api.groupdocs.cloud”,
“accept-encoding”: “gzip, deflate, br”,
“connection”: “keep-alive”,
“content-length”: “279”
},
“Request Body”: “{\r\n "sourceLanguage": "en",\r\n "targetLanguages": ["it"],\r\n "originalFileName": "NameCheck_CBI_Interface_Agreement_v3.0_Draft.pdf",\r\n "url": "",\r\n "origin": "api-request",\r\n "savingMode": "Files",\r\n "outputFormat": "pdf",\r\n "preserveFormatting": true,\r\n "pages": [200]\r\n}”,
“Response Headers”: {
“server”: “nginx/1.19.9”,
“date”: “Fri, 21 Feb 2025 13:36:33 GMT”,
“content-length”: “0”,
“www-authenticate”: “Bearer error="invalid_token", error_description="The issuer ‘https://api.groupdocs.cloud’ is invalid"”,
“x-lb”: “TLR”
}
}

@enrico.fiorini
I got “invalid client” error with provided client_id and client_secret.

Ok, I changed the secret ID.
What test do you want to do?
Hi!

@enrico.fiorini
Have you provided correct client_id in the message above? As I wasn’t able to reproduce Unauthorized error with my credentials, we will explore why it produces this error.

Ok , this Is Client secret 0b8f9884aad2411354c2845c561acbfb
Client id Is the same of the request that I shared
Hi!

Hi , have you taken the test?

@enrico.fiorini
I checked API with your credentials, and got 200 status either for /pdf or /text endpoints. Could your provide email used for registration?

Hi , can you send me the request and reponse?
And the mail could be enrico.fiorini@cedac.com or enrico.fiorini.1964@gmail.com , I don’t remember, sorry.
Thank you very much

@enrico.fiorini
body of request:
{
“sourceLanguage”: “en”,
“targetLanguages”: [
“it”
],
“originalFileName”: “test.pdf”,
“url”: “https://translation-groupdocs-app.s3.us-west-2.amazonaws.com/7fb4c591-d6b5-4403-b710-b8f3f3367d17.pdf?X-Amz-Expires=86400&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA4XIV7DNDNXDH3NXK/20250226/us-west-2/s3/aws4_request&X-Amz-Date=20250226T133924Z&X-Amz-SignedHeaders=host&X-Amz-Signature=df8f5eea23333b8d334bd962eaeddc10eeebf19419075ee38a315d2fb45c896a”,
“savingMode”: “Files”,
“outputFormat”: “pdf”
}
And the response:
{
“status”: 202,
“message”: “Starting translation. Success”,
“id”: “85aebb98-f7b0-42e0-a444-55e814327f86”
}
Also kindly regenerate your client secret from dashboard and share it.

POST https://api.groupdocs.cloud/connect/token: {
“Network”: {
“addresses”: {
“local”: {
“address”: “192.168.1.242”,
“family”: “IPv4”,
“port”: 56314
},
“remote”: {
“address”: “74.113.210.20”,
“family”: “IPv4”,
“port”: 443
}
},
“tls”: {
“reused”: false,
“authorized”: true,
“authorizationError”: null,
“cipher”: {
“name”: “TLS_AES_128_GCM_SHA256”,
“standardName”: “TLS_AES_128_GCM_SHA256”,
“version”: “TLSv1/SSLv3”
},
“protocol”: “TLSv1.3”,
“ephemeralKeyInfo”: {},
“peerCertificate”: {
“subject”: {
“commonName”: “api.groupdocs.cloud”,
“alternativeNames”: “DNS:api.groupdocs.cloud”
},
“issuer”: {
“country”: “AT”,
“organization”: “ZeroSSL”,
“commonName”: “ZeroSSL ECC Domain Secure Site CA”
},
“validFrom”: “Jan 21 00:00:00 2025 GMT”,
“validTo”: “Apr 21 23:59:59 2025 GMT”,
“fingerprint”: “E7:2E:77:69:15:69:E8:64:38:05:BC:71:09:2F:A5:2C:02:E0:F9:D1”,
“serialNumber”: “1fb00ea159d0c5c85380ecd314ff7051”
}
}
},
“Request Headers”: {
“content-type”: “application/x-www-form-urlencoded”,
“user-agent”: “PostmanRuntime/7.43.0”,
“accept”: “/”,
“cache-control”: “no-cache”,
“postman-token”: “d0964972-df45-43d1-9a59-5e019f5a54d9”,
“host”: “api.groupdocs.cloud”,
“accept-encoding”: “gzip, deflate, br”,
“connection”: “keep-alive”,
“content-length”: “123”
},
“Request Body”: {
“grant_type”: “client_credentials”,
“client_id”: “a2780c6e-89c8-4b33-9da2-7d603a898cc9”,
“client_secret”: “4de52a0a0a9c8d79083f262901db1788”
},
“Response Headers”: {
“date”: “Wed, 26 Feb 2025 14:26:36 GMT”,
“content-type”: “application/json; charset=UTF-8”,
“transfer-encoding”: “chunked”,
“cache-control”: “no-store, no-cache, max-age=0”,
“pragma”: “no-cache”,
“x-robots-tag”: “noindex, nofollow”,
“x-cluster”: “cloud-02”,
“content-encoding”: “br”,
“x-lb”: “TLR”
},
“Response Body”: “{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3NDA1Nzk5OTYsImV4cCI6MTc0MDU4MzU5NiwiaXNzIjoiaHR0cHM6Ly9hcGkuZ3JvdXBkb2NzLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmdyb3VwZG9jcy5jbG91ZC9yZXNvdXJjZXMiLCJhcGkuYmlsbGluZyIsImFwaS5pZGVudGl0eSIsImFwaS5wcm9kdWN0cyIsImFwaS5zdG9yYWdlIl0sImNsaWVudF9pZCI6ImEyNzgwYzZlLTg5YzgtNGIzMy05ZGEyLTdkNjAzYTg5OGNjOSIsImNsaWVudF9kZWZhdWx0X3N0b3JhZ2UiOiIzNjVmNDU3MS0xOGIwLTQ3YmItYTcwMi03MzQ2ZDJkYzRmNzciLCJjbGllbnRfaWRlbnRpdHlfdXNlcl9pZCI6IjEwMjU3NDIiLCJzY29wZSI6WyJhcGkuYmlsbGluZyIsImFwaS5pZGVudGl0eSIsImFwaS5wcm9kdWN0cyIsImFwaS5zdG9yYWdlIl19.yTzz_lHNsKKwb2I17RUAl3hU4NVcQbRj_kQLz-27z9WEAT2hh8ykUQRlllu-jMYbg354ES5VUiruLJjefd_zpmXMgXGmhqteopSPFhjqLBulcqhFPUKfkSKGsCSrXjnPaQZsKlMWAN7asWqyaCWbm0QdeRA7gO_3I9lFHjvbMnX3Uw_C8AFbhcNT_TZkPElhN4qYfva8CU4wmuymVHYfY14sJnbchvGu1WHI66Xvh-WPxuxpd0wPIPaPV12rZCoWaqd3gykwXyl9i-S_miebrn2CCw1nQ3o-rbaW2ZbD_FflX8Q6QvFUpm-SZTjriikqr4ikOoqTcpeWiHTebPfxlw","expires_in":3600,"token_type":"Bearer"}”
}
POST https://api.groupdocs.cloud/v2.0/translation/pdf: {
“Network”: {
“addresses”: {
“local”: {
“address”: “192.168.1.242”,
“family”: “IPv4”,
“port”: 56406
},
“remote”: {
“address”: “74.113.210.20”,
“family”: “IPv4”,
“port”: 443
}
},
“tls”: {
“reused”: false,
“authorized”: true,
“authorizationError”: null,
“cipher”: {
“name”: “TLS_AES_128_GCM_SHA256”,
“standardName”: “TLS_AES_128_GCM_SHA256”,
“version”: “TLSv1/SSLv3”
},
“protocol”: “TLSv1.3”,
“ephemeralKeyInfo”: {},
“peerCertificate”: {
“subject”: {
“commonName”: “api.groupdocs.cloud”,
“alternativeNames”: “DNS:api.groupdocs.cloud”
},
“issuer”: {
“country”: “AT”,
“organization”: “ZeroSSL”,
“commonName”: “ZeroSSL ECC Domain Secure Site CA”
},
“validFrom”: “Jan 21 00:00:00 2025 GMT”,
“validTo”: “Apr 21 23:59:59 2025 GMT”,
“fingerprint”: “E7:2E:77:69:15:69:E8:64:38:05:BC:71:09:2F:A5:2C:02:E0:F9:D1”,
“serialNumber”: “1fb00ea159d0c5c85380ecd314ff7051”
}
}
},
“Request Headers”: {
“authorization”: “Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3NDA1Nzk5OTYsImV4cCI6MTc0MDU4MzU5NiwiaXNzIjoiaHR0cHM6Ly9hcGkuZ3JvdXBkb2NzLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmdyb3VwZG9jcy5jbG91ZC9yZXNvdXJjZXMiLCJhcGkuYmlsbGluZyIsImFwaS5pZGVudGl0eSIsImFwaS5wcm9kdWN0cyIsImFwaS5zdG9yYWdlIl0sImNsaWVudF9pZCI6ImEyNzgwYzZlLTg5YzgtNGIzMy05ZGEyLTdkNjAzYTg5OGNjOSIsImNsaWVudF9kZWZhdWx0X3N0b3JhZ2UiOiIzNjVmNDU3MS0xOGIwLTQ3YmItYTcwMi03MzQ2ZDJkYzRmNzciLCJjbGllbnRfaWRlbnRpdHlfdXNlcl9pZCI6IjEwMjU3NDIiLCJzY29wZSI6WyJhcGkuYmlsbGluZyIsImFwaS5pZGVudGl0eSIsImFwaS5wcm9kdWN0cyIsImFwaS5zdG9yYWdlIl19.yTzz_lHNsKKwb2I17RUAl3hU4NVcQbRj_kQLz-27z9WEAT2hh8ykUQRlllu-jMYbg354ES5VUiruLJjefd_zpmXMgXGmhqteopSPFhjqLBulcqhFPUKfkSKGsCSrXjnPaQZsKlMWAN7asWqyaCWbm0QdeRA7gO_3I9lFHjvbMnX3Uw_C8AFbhcNT_TZkPElhN4qYfva8CU4wmuymVHYfY14sJnbchvGu1WHI66Xvh-WPxuxpd0wPIPaPV12rZCoWaqd3gykwXyl9i-S_miebrn2CCw1nQ3o-rbaW2ZbD_FflX8Q6QvFUpm-SZTjriikqr4ikOoqTcpeWiHTebPfxlw”,
“content-type”: “application/json”,
“user-agent”: “PostmanRuntime/7.43.0”,
“accept”: “/”,
“cache-control”: “no-cache”,
“postman-token”: “7f582f41-5b50-4c95-8600-f7f27a839051”,
“host”: “api.groupdocs.cloud”,
“accept-encoding”: “gzip, deflate, br”,
“connection”: “keep-alive”,
“content-length”: “573”
},
“Request Body”: “{\r\n "sourceLanguage": "en",\r\n "targetLanguages": ["it"],\r\n "originalFileName": "test.pdf",\r\n "url": "https://translation-groupdocs-app.s3.us-west-2.amazonaws.com/7fb4c591-d6b5-4403-b710-b8f3f3367d17.pdf?X-Amz-Expires=86400&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA4XIV 7DNDNXDH3NXK/20250226/us-west-2/s3/aws4_request&X-Amz-Date=20250226T133924Z&X-Amz-SignedHeaders=host&X-Amz-Signature=df8f5eea23333b8d334bd962eaeddc10eeebf19419075ee38a315d2fb45c896a",\r\n "savingMode": "Files",\r\n "outputFormat": "pdf",\r\n "preserveFormatting": true,\r\n "pages": [200]\r\n}”,
“Response Headers”: {
“server”: “nginx/1.19.9”,
“date”: “Wed, 26 Feb 2025 14:29:08 GMT”,
“content-length”: “0”,
“www-authenticate”: “Bearer error="invalid_token", error_description="The issuer ‘https://api.groupdocs.cloud’ is invalid"”,
“x-lb”: “TLR”
}
}

can You verify my call? and can you tell me where I’m wrong?
Thank

@enrico.fiorini
everything is fine with your credentials, sorry that I didn’t pay attention earlier, you should obtain token by sending request to https://id.groupdocs.cloud/connect/token, by sending it to api.groupdocs.cloud I was able to reproduce your mistake. Please retry by sending request to a proper URL.

1 Like

thank you very much and sorry if I wasted your time, I don’t remember where I found the last point. I will try it with great pleasure. However, what is the purpose of the URL I used? and why does it return a token? many thanks again
Best regards

Perfect, using the correct endpoint from the token request, I get the response (200 Ok) to the translation request.
Thank you vey very much.
One last request, then I won’t bother you anymore.
If I wanted to upload files to process from the dashboard in the Files section, how can I find the correct URL to insert into the relevant “body” field?

:+1:

@enrico.fiorini
please use https://api.groupdocs.cloud/v2.0/translation/file/upload to upload file, you will receive the response with a link to your file saved on S3, that you should pass in request body for translation