Box Toolkit Send Request Issue
I've been using the Box Toolkit for a process that has worked for years with no issues. Now, all of sudden we are getting "Read Timed out" after making call outs using Class.box.Toolkit.sendRequest. It's strange because it's working fine in the SalesForce sandbox. So, it's only happening in production, recently.
Thanks,
Dan
-
正式なコメント
Are you getting an exception? Or any other information I can use to check for the error on the Box side? It looks like this blog post is tied to a free developer account... do you also have a production enterprise account with Box?
Thanks,
Alex, Box Developer Advocate
コメントアクション -
Under the covers the toolkit (or SDK) is ultimately calling the REST endpoints at Box and as with all things internet, things happen with connections. In our Apex we have retry logic that checks to see if we get a file Id back. If not, it will retry the request, up to 3 times before finally logging an exception. We find that we rarely fail 3 times.
If you are finding it's failing every request, depending on your Salesforce experience you may be able to debug. Since the Salesforce SDK is an unmanaged package, you could set up debug logs for the user executing the call, then use Visual Studio Code and the Replay Debugger to step through the code and see if you can find out which line is failing. -
Thanks for the help. Like I said, it's been working for years flawlessly in SF Enterpise. Testing and debugging is being done in the Sandbox and working like clock work. My code is not the problem. My code and the toolkit code are working bug free. However, the thread is waiting for a response to read the data sent back, but for some reason it is timing out. The failure is on the Box side. Now, in the past I use to be able to open incidences with Box, so they could do a trace and give me feedback. Maybe you know a way to still do this?
サインインしてコメントを残してください。
コメント
4件のコメント