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

Custom Translate on EMEA env when using Webhook failing on 1st attempt #79

Open
jaimerosales opened this issue Aug 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jaimerosales
Copy link

When trying to translate object (custom) and adding the workflow ID on the 1st attempt it gave us an error every time we wanted to translate also on EMEA. We had to run it a second time and then it started translating.

@petrbroz
Copy link
Owner

petrbroz commented Sep 4, 2023

Thanks for the heads up @jaimerosales. This issue seems to be very hard to reproduce. Here's the steps I took to reproduce it:

  1. Created a new OSS bucket in EMEA
  2. Uploaded a design file to it
  3. Created a webhook with some workflow ID
  4. Used Translate Object (Custom) to translate the uploaded design with the same workflow ID

When I did this for the first time, I got an error as well:

{
    "config": {
        "url": "designdata/job",
        "method": "post",
        "data": "{\"input\":{\"urn\":\"dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6YnJvenAtdGVzdC1idWNrZXQtZW1lYS9CaWtlJTIwRnJhbWUuZjNk\"},\"output\":{\"formats\":[{\"type\":\"svf2\",\"views\":[\"2d\",\"3d\"],\"advanced\":{\"switchLoader\":false,\"generateMasterViews\":false}}],\"destination\":{\"region\":\"EMEA\"}},\"misc\":{\"workflow\":\"foobar\",\"workflowAttribute\":{}}}",
        "headers": {
            "Accept": "application/json, text/plain, */*",
            "Content-Type": "application/json",
            "x-ads-force": "true",
            "Authorization": "Bearer eyJhbGci...",
            "User-Agent": "axios/0.21.4",
            "Content-Length": 313
        },
        "baseURL": "https://developer.api.autodesk.com/modelderivative/v2/",
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "transitional": {
            "silentJSONParsing": true,
            "forcedJSONParsing": true,
            "clarifyTimeoutError": false
        }
    },
    "data": {
        "diagnostic": "We encountered an internal error, please try again."
    },
    "headers": {
        "content-type": "application/json; charset=utf-8",
        "date": "Mon, 04 Sep 2023 08:14:50 GMT",
        "strict-transport-security": "max-age=31536000; includeSubDomains",
        "x-ads-app-identifier": "platform-viewing-2023.08.01.391.6677b1f05-production",
        "x-ads-duration": "93 ms",
        "x-ads-exception-id": "fe7e9a13-b5bd-4189-a8c1-399b833888a1",
        "x-ads-startup-time": "Mon Aug 28 07:23:41 UTC 2023",
        "x-ads-troubleshooting": "Service Error.",
        "content-length": "68",
        "connection": "Close"
    },
    "status": 500,
    "statusText": "Internal Server Error"
}

What's weird is that I'm not able to reproduce the issue anymore. I tried removing all derivatives, all OSS objects, and all webhooks, and repeat steps 2-4, but I can't get the error anymore...

Do you perhaps have some better repro steps that can always trigger the error?

@petrbroz petrbroz added the bug Something isn't working label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants