Cloud Development Kit

502 Bad gateway

Hi,

I'm developing a web service with myscript cloud.

Everything works fine but sometimes i got message "502 Bad Gateway" .

especially, the error occurs with a high probability when the web page refreshed frequently in short time.

is there any way to prevent this kind of error?

my recognitionparams is as follows :

 recognitionParams: {

                type: 'TEXT',

                protocol: 'WEBSOCKET',

                apiVersion: 'V4',

                server: {

                  scheme: 'https',

                  host: 'cloud.myscript.com',

                        applicationKey: xxxxxx

                        hmacKey: xxxxx

                },

                v4 : {

                export: {

                    'image-resolution': 300,

                    jiix: {

                        'bounding-box': false,

                        strokes: true

                    }

                },

                lang : 'ko_KR',

// mimeTypes : ['text/plain','application/vnd.myscript.jiix'],

                text : {

                    mimeTypes: ['text/plain','application/vnd.myscript.jiix']

                },

                math : {

                    mimeTypes: ['application/x-latex']

                }


                }


Dear Minho Lee,

thank you for contacting us.

We are currently trying to fix this. If you happen to have again this error, can you please provide us with your request? This will indeed help us.

Best regards,

Olivier

Thank you for your reply, and I have another question.

I found that the "host" in the "Text recognition and conversion with V4 API" is "webdemo.myscript.com" and I'm using "cloud.myscript.com" 

Are there any differences between webdemo. and cloud. servers?

If then, which one should I use?





Dear Minho Lee,

Currently, you should use cloud.myscript.com, which is the default URL for the CDK.

Best regards,

Olivier
Login or Signup to post a comment