-
Notifications
You must be signed in to change notification settings - Fork 17
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
500 response on submission API #887
Comments
Good Morning @charles-f |
Good morning @DDCTLS-DEV-TEAM the response on the API received was this. Which is an error ID - This exception has been logged with id 7mgib5j5i <title>Error</title> <style type="text/css"> html, body, pre { margin: 0; padding: 0; font-family: Monaco, 'Lucida Console', monospace; background: #ECECEC; } h1 { margin: 0; background: #A31012; padding: 20px 45px; color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,.3); border-bottom: 1px solid #690000; font-size: 28px; } p#detail { margin: 0; padding: 15px 45px; background: #F5A0A0; border-top: 4px solid #D36D6D; color: #730000; text-shadow: 1px 1px 1px rgba(255,255,255,.3); font-size: 14px; border-bottom: 1px solid #BA7A7A; } </style> Oops, an error occurredThis exception has been logged with id 7mgib5j5i. There are more but this is an one of them. Can you please let me know how we can get the submission receipt and correlation IDs for that submission. Can you expand the VAT returns API endpoint to include this information, then at least we have a way to retrieve that even if there is a failure in that original submission? |
We have done some digging into the code as well as Kibana Logs. There are three stages that we have observed: Stage 1: The actual submission at “January 31st 2022, 17:42:00.695” that resulted in Timeout Exception from the Downstream service (DES). Unfortunately we could not log any meaningful information at this stage as its Timeout exception. Stage 2: The subsequent tries made in the next couple of minutes resulted in error: “The VAT return was already submitted for the given period”. Stage 3: The subsequent attempts to retrieveObligations are all returning the error: “The remote endpoint has indicated that no data can be found”. (This might also means a positive response as the data needed to return is no longer present). We can return or log ‘submission receipt’ and ‘correlation ID’ only when the Downstream returns success response. Its not possible to return them from VAT-API to the caller unless the Downstream gives them back to VAT-API. |
Hi, any update please? Thanks. |
Hi, we have provided all the information requested by DES Live Support team. They came back and asked if the VAT Regs we provided are right. We have confirmed they were correct. We are still waiting in the response from them. |
Hi, any update please? Thanks. |
Hello there,
We haven’t heard anything from DES Support. We will ping them again and let them know we are waiting for their response.
Thanks & Regards
Mohan
Scala Developer
DDCLS, Telford
… On 24 Mar 2022, at 15:28, 'Adrian' via BTA Guardians ***@***.***> wrote:
Hi, any update please? Thanks.
—
Reply to this email directly, view it on GitHub <#887 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AWQTAJOSY4NAGTPSTRZOKOTVBSC3NANCNFSM5NRU4VOQ>.
You are receiving this because you were mentioned.
|
Hi, Any further updates - it's now been a while and we're keen to get some constructive feedback. And we're approaching a new submission window where I think it will happen again. We've seen this on pretty much every quarterly filing window - 500 http code responses on submission - though I don't know if they are all the same. In 2022 alone - I've seen 14 submission failures with 500 http code responses. In December 2021 - another 11. List goes on. Thanks, |
With the new deadline now passed, we did see 12 more occurrences of 500 responses on submissions.
that's 12 attempts across 5 different VRNs. Any update on this situation because it's only happening more and more. |
Hi any update - this still continues to happen. |
Hello there,
Please can you take sometime to address this issue. We have been chased by Support teams to resolve this issue since Feb, 2022.
We surely need a fix for this.
… Kind Regards
Mohan Dolla | Scala Developer | DDCT Live Services | HM Revenue & Customs | Telford Plaza | Telford & Wrekin | TF3 4NT
On 9 May 2022, at 08:50, Scott Goodwin ***@***.***> wrote:
Good morning Charles F,
Hope you are well.
We are still waiting for a response for DES for support on these errors. Unfortunately, we dont have any visibility of DES or the code involved so we are reliant on their input.
Here is the second email to DES:
Hello there,
We have sent you an email some time in the first week of Feb,2022 to investigate this issue and let us know possible ways to prevent this from happening. There are more customers seeing this problem now. Please can you respond as soon as you can.
Here it is again:
I am one of the Devs supporting VAT-API service. I am reaching out to see if you can help us with tracking the submissions for VRN: 327450901 on DES. Here I can outline the sequence of events for this VRN:
Stage 1: The actual Returns submission was attempted by VAT-API at “January 31st 2022, 17:42:00.695” that resulted in Timeout Exception from the Downstream service (DES). Unfortunately we could not log any meaningful information at this stage as its Timeout exception.
Stage 2: The subsequent tries made in the next couple of minutes resulted in error: “The VAT return was already submitted for the given period”.
This positively indicates that the submission made in Stage-1 was indeed successful.
Stage 3: The subsequent attempts to retrieveObligations for that VRN are all returning the error: “The remote endpoint has indicated that no data can be found”. (This might also means a positive response as the data needed to return is no longer present).
Can you please give us “Submission Receipt” and “correlation ID” for the submissions done for that VRN? We need to pass them to the QA and Customer support teams.
Also we would like to know if its possible:
Step(a): to have VAT-API service RETRY the same submission after getting error response at Stage-1? And if we get the error "The VAT return was already submitted for the given period”, we can assume it has gone through?
Step(b): for DES service to return “Submission Receipt” and “correlation ID” as part of response in retry at Step(a) above instead of just returning the message?
If you would to push this with them here is their email:
***@***.*** ***@***.***>
Hopefully, you can get us an answer quicker.
Kind Regards
Scott Goodwin
Tech Lead
On Mon, 9 May 2022 at 08:43, 'Charles F (QA)' via BTA Guardians ***@***.*** ***@***.***>> wrote:
Hi, Any further updates - it's now been a while and we're keen to get some constructive feedback. And we're approaching a new submission window where I think it will happen again.
We've seen this on pretty much every quarterly filing window - 500 http code responses on submission - though I don't know if they are all the same.
In 2022 alone - I've seen 14 submission failures with 500 http code responses. In December 2021 - another 11. List goes on.
Thanks, Charles
With the new deadline now passed, we did see 12 more occurrences of 500 responses on submissions.
8 on 3rd May
3 on 4th May
1 on 6th May
that's 12 attempts across 5 different VRNs. Any update on this situation because it's only happening more and more.
—
Reply to this email directly, view it on GitHub <#887 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AWQTAJKWI52GRKBH5SXSUF3VJC6ZJANCNFSM5NRU4VOQ>.
You are receiving this because you were mentioned.
--
Kind Regards
Scott Goodwin | Technical Lead | DDCT Live Services | HM Revenue & Customs | Telford Plaza | Telford & Wrekin | TF3 4NT
|
Can we have an update please? We have the same issue occurring for a few hundred submissions each month - 500 responses followed by inconsistent replies from vat return and obligations endpoints. We reported this via the SDS team with detailed data as requested, and we've been waiting for any response since 10 June. As additional note, returning he HTML response is a bug in itself. No content-type header is set so it defaults to application/json. We would expect the body to be JSON like any other error response. |
Hi this is still happening a lot. In the July August filing period - we've had 103 of these 500 responses on the submissions. Surely this is a serious enough bug for you to prioritise? |
Hello @charles-f For us as a team it is our priority and to be honest, we are feeling your frustration too. We have had to escalate this and we now have a meeting booked for tomorrow with the team that owns the data (Unfortunately that's not us). We are hoping we will have something tangible tomorrow for you or at least an update on what the plan is. Thank you again for your patience and we'll update you tomorrow. |
thanks @DDCTLS-DEV-TEAM appreciate the update. |
hi @DDCTLS-DEV-TEAM can you please let us know the update from today's meeting please thanks |
@charles-f Good morning, The outcome of the meeting was that the backend systems have acknowledged there is an issue. So if you have a recent example over the last 30 days and if you can send the data to the SDS team we can send this on. Thank you for your help in this one, hopefully, we are getting somewhere with it. Unfortunately, it's something we cant sort ourselves on the vat-api team. |
Great to hear that there is recognition of a source of this, looking forward to a solution :-) |
Hello, Is there an ETA on when a fix will be applied for this? We have had reports of this issue on the latest batch of returns. A quick fix to ensure that the submission is not posted to HMRC would be preferable in the short term. At the moment our system will state the submission hasn't worked because we expect a JSON response and not html: <title>Error</title> <style type="text/css"> html, body, pre { margin: 0; padding: 0; font-family: Monaco, 'Lucida Console', monospace; background: #ECECEC; } h1 { margin: 0; background: #A31012; padding: 20px 45px; color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,.3); border-bottom: 1px solid #690000; font-size: 28px; } p#detail { margin: 0; padding: 15px 45px; background: #F5A0A0; border-top: 4px solid #D36D6D; color: #730000; text-shadow: 1px 1px 1px rgba(255,255,255,.3); font-size: 14px; border-bottom: 1px solid #BA7A7A; } </style> Oops, an error occurredThis exception has been logged with id EXAMPLE. |
@LH200 thanks we have the exact same issue, and if you even attempt to resubmit then you get the rejection for duplicate submission also. Agreed I would prefer if the submission in fact doesn't happen as a result of this 500. And therefore a resubmission would be allowed. This has now affected 121 of submissions in my product since June. We're having to explain to users that it's an issue with HMRC's API and not our product. Here is my latest example @DDCTLS-DEV-TEAM <title>Error</title> <style type="text/css"> html, body, pre { margin: 0; padding: 0; font-family: Monaco, 'Lucida Console', monospace; background: #ECECEC; } h1 { margin: 0; background: #A31012; padding: 20px 45px; color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,.3); border-bottom: 1px solid #690000; font-size: 28px; } p#detail { margin: 0; padding: 15px 45px; background: #F5A0A0; border-top: 4px solid #D36D6D; color: #730000; text-shadow: 1px 1px 1px rgba(255,255,255,.3); font-size: 14px; border-bottom: 1px solid #BA7A7A; } </style>Oops, an error occurredThis exception has been logged with id 7oi9c2i38. |
@charles-f thank you for the update can you please send the VRN you used for that submission please to the SDS team and link in this Github issue they will forward it to us then thank you. Hopefully, the other teams then will have something to follow on with. @LH200 unfortunately there isnt an ETA on this yet as the downstream services are still discussing the issue. The vat-api service and this team are basically a proxy to the backend services (different teams). We also have an issue where the backend service isn't available at all, we have a fix going through the pipeline to stop the HTML being sent and the error is sent in JSON. So we are hoping once that goes in you won't see any HTML anymore and the JSON mite gives you more to go off in terms of letting your users know. Thank you all for your understanding on this one, we are actively investigating this and trying to get the right people in the room. |
We're still getting 500 errors on the response API, I've provided my team member who's in contact with Alex Anikeev about this issue - with the VRN for the follow up. |
Good Morning @charles-f In the meantime, if you can keep emailing in your VRNs when you're getting the issues that will also help and we apologize for the inconvenience this is causing. Kind Regards |
Good afternoon @charles-f Kind regards |
@DDCTLS-DEV-TEAM what is your process for those affected by this who does not have a receipt id as a result. Where the obligation has been fulfilled and users want a receipt acknowledging submission has been made. We have customers asking about this bug, and though it maybe partially resolved in that you no longer show the html error anymore (what I see from my company's product), there are still some 500 responses on the submission (with json response) and many more 503s and some 504s than before. My assessment of this would be that the 'fix' has only moved the issue to another response code (503s) and where 500s still happen (they now return json). Can I suggest that if you do not get a response in time, then you reject the submission - this would allow the user to resubmit at least and not keep causing these issues. I look forward to hearing your answer about what is the process for what to do about no receipt id. |
Hello @charles-f Thank you for getting in touch. So we (VAT-API) are hitting the downstream to submit. This has all gone through ok. Our downstream then go off further to update the user's data in the backends. We (VAT-API) are throwing timeouts because our downstream doesn't respond in time. However, they have pushed that data onto the backends and it is in the process of updating/ submitting when we throw the timeout. Then after a certain amount of time (we are still in talks with the backends to understand this) our downstream then get a positive result but by then obviously, we have timed out. Now we have upped our timeouts a little to try and reduce this problem. (as you can imagine this isn't a permanent fix and doesn't solve it for everyone) so we are trying to understand why these timesout are happening and what we can do about this. The VAT-API doesnt create the receipt id, that is given to us from a successful response. If the VAT-API is getting errors from the downstreams there is no way of us getting you that receipt id from inside the VAT-API service (at the moment). Unfortunately, at this time we dont know the ins and outs of how this is made and whether we could retrieve it at a later date, so say if you submitted the same thing, we could return something more useful like you have done this already here is the receipt id. We are trying to get to the bottom of this because that would help out alot of people like yourselves. We will keep you updated as we go. Kind Regards |
API
Describe the bug
Hi - we're seeing a few 500 responses on the submission API, but the submission is actually going through as the obligation itself becomes fulfilled with a received date that matches the submission date. However since the API for the submission returned 500 - we don't have the receipt and correlation id for that submission.
To Reproduce
This is intermittent - but it's simply submitting through the API
Expected behavior
201 response along with the response headers and body
Additional context
In the response body - I've noted it returns a HTML error response - which includes an ID - maybe this error id means something to you?
I'm trying to find a pattern but it just seems random.
Live environment
The text was updated successfully, but these errors were encountered: