I need a way to return errors that occurred before sending the data to the flexmonster using a REST API.
As it is today when an API error occurs, only a generic error message appears in FLEXMONSTER, and we do not know the source of the problem
Thank you for posting your question here.
We can suggest you the following scenario: if you add messages about API error into the response, we will show this response in addition to the message in our error pop-up window. Will this work for you?
Also, could you please specify your data source? Are you using Data Compressor for .NET?
I am using Data Compressor for .NET, Is there any way to return the error for it?
The first option you offered me does not work for my scenario.
Thank you for the update. For now, it is not possible to pass the error message from .Net Compressor. We are expecting to add such feature in the nearest releases for you. As we see it, the component should be able to get the error message from the response and display it in UI pop-up. If you know a better way of achieving the necessary behavior please let us know.
Waiting for the update from you.
Thanks for the feedback.
If you can show the return in a Pop-up will be very good !.
I’ll wait for the update.
Thank you for the clarification. We will notify you of the results, ETA Jan 29.
We are glad to inform you that the new component’s version 2.413 is already available on our website. You are welcome to update the component. For now, when you need to show error message from the response, it can be done the following way:
HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.BadRequest);
response.Content = new StringContent(e.Message);
Please let us know if everything works fine for you.
Is there any way to check my version of flexmonster, because I requested a version yesterday to download, and after updating and including the necessary codes I did not get the expected result that is to get the error message, it is showing the same message as always.
Thank you for the update.
To check your current version of Flexmonster, please press
Ctrl+Alt+i on the grid.
Also, you may have to clear browser cache after the update.
As for the error message, you can check the following demo – http://jsfiddle.net/flexmonster/nr2uqzwb/
Request to the http://olap.flexmonster.com/compressor/file.php returns status 403 and error response
File not found. This message is displayed in the popup. Also, you can customize (or remove) the text before the response message using the localization object.
Please let me know if you have further questions.
Hello Ian Sadovy!
I was able to view the message, but when this message exceeds 22 characters the component does not display the message. Example: ‘FILE NOT FOUND’ message is displayed correctly. Message ‘FILE NOT FOUND SORRY MY FRIENDY’ is not displayed! See attached images
See attached images
Thank you for reporting this!
Please try this package with the fix. The package contains
index.html with the same demo and message
FILE NOT FOUND SORRY MY FRIEND. is displayed correctly.
Please let me know if everything works as expected.
Worked Correctly, Thanks!