Comments (22)
Hi Luke
Thank you for the quick reply. We think we have identified a separate issue. We are working on this as a priority and will update when a new fix is out.
Cheers
Johnny
DDCTLS Team
from vat-api.
I have looked through the closed issues and seen this post:
I therefore tried to do a submission with an organisation created from the following URL:
https://developer.service.hmrc.gov.uk/api-test-user
I still get internal server error (endpoint, request body and response are below):
https://test-api.service.hmrc.gov.uk/organisations/vat/722605949/returns
{"periodKey":"18A2","vatDueSales":1905.64,"vatDueAcquisitions":0.00,"totalVatDue":1905.64,"vatReclaimedCurrPeriod":990.00,"netVatDue":915.64,"totalValueSalesExVAT":13598.0,"totalValuePurchasesExVAT":6467.0,"totalValueGoodsSuppliedExVAT":0.0,"totalAcquisitionsExVAT":0.0,"finalised":true}
{"code":"INTERNAL_SERVER_ERROR","message":"An internal server error occurred"}
I do have my own code to create an organisation which only adds the "mtd-vat" scope however this was previously working when we last tested using the sandbox.
from vat-api.
Good Morning @LukeHirst
Apologies for the late reply on this one.
We would be more than happy to help get to the bottom of this one.
We have had a look at the errors in the sandbox environment and it looks like the only ones we are getting are Unauthorised insufficient enrolments or unsupported enrolments.
We have created a user with mtd-vat only and used your JSON above and it looks like it works for us. Could you do me a favor please and hit it again can you make a note of the exact time you hit it and hopefully we can narrow down your request and iron out this issue for you.
Kind Regards
DDCTLS Team
from vat-api.
It is still returning error 500, below is the correlationId which should unique to the request:
CorrelationId = d19a7cea-cf61-438b-b8fb-adfcd0693b46
Would this be good enough to track it?
from vat-api.
Good morning Luke,
The correlationId was helpful, thank you. We have just pushed out a change that will hopefully solve your issue. Could you try again and see if the issue is resolved please?
Cheers,
Johnny
DDCTLS Team
from vat-api.
@DDCTLS-DEV-TEAM Hello Johnny,
I am still get the error 500, correlation ID as below:
a8de603a-28c0-46ee-ab97-126322ff45a5
Is this fix conditional on creating a new organisation or something?
from vat-api.
I'm also having exactly the same problem with a 500 error when submitting a return to the sandbox.
from vat-api.
Good Morning @LukeHirst and @bcroston,
We have implemented a change that should fix the issue.
Can you please try again and update us.
Thank you in advance.
DDCTLS Team
from vat-api.
I'm still getting the same 500 error
from vat-api.
@bcroston Can you please provide correlation-id or VRN ?
from vat-api.
VRN ix 646015553
It's giving me a 500 error before I get a correlation-id
from vat-api.
Hello @bcroston
Looking at the logs you are getting a 500 response when authenticating. This is most likely why you don't get to the correlation-id part of the vat-API service.
Can you confirm how you're setting up a user please and whether this has worked for you in the past?
Thank you in advance
DDCTLS Team
from vat-api.
I created the test user a long time ago (1 year plus) and can't remember doing it. I will create a new test user using the API and see what happens.
from vat-api.
@bcroston thank you
from vat-api.
A new test user has fixed the problem for me.
from vat-api.
@bcroston Happy to hear it.
Thank you for reaching out to us.
@LukeHirst do you have an update on your side?
Thank you in advance
DDCTLS Team
from vat-api.
@DDCTLS-DEV-TEAM I have regenerated my user from both website and my own test program but still get internal server error, correlation ID as below:
624f2da2-4ccd-48be-a1f7-d9245598dad2
from vat-api.
Hello @LukeHirst ,
Can you tell us the headers you are using please?
Thank you
from vat-api.
I am using the following URL:
https://test-api.service.hmrc.gov.uk/organisations/vat/589531983/returns
Headers:
- Authorization = Bearer VALIDTOKEN
- Accept = {application/vnd.hmrc.1.0+json}
- Gov-Test-Scenario = ""
I am also sending fraud prevention headers however I am not sure if it's relevant to list them as we don't usually get a response about them on this github
from vat-api.
I have managed to submit a return successfully by removing the blank Gov-Test-Scenario header. This used to work previously with an empty string but now needs to be omitted if there is no value
from vat-api.
@LukeHirst
Perfect we were about to suggest "-" on the Gov-Test-Scenario header.
If you would like to try that as well that would work too. (Or should)
If you are happy we will close the issue?
Thank you.
DDCTLS Team
from vat-api.
Yes, I have closed this issue
from vat-api.
Related Issues (20)
- Missing info in new documentation for Submit VAT retrun HOT 2
- how to implement the getting code to generate token api for VAT returns HOT 1
- Inaccurate API documentation
- Gov-Client-Public-IP and Gov-Vendor-Forwarded fraud prevention headers don't support hybrid IPv4/IPv6 addresses HOT 1
- Incorrect DUPLICATE_SUBMISSION error HOT 7
- 500 Response when submitting a VAT Return on the sandbox environment HOT 2
- Incorrect response, client_id is required when requesting authorisation code HOT 1
- Following a VAT Return submission POST (box 5 non-zero), subsequent Liabilities calls return 404 HOT 3
- Missing Authentication - HMRC error code 401 HOT 1
- Invalid period key -VAT submission HOT 1
- Inconsistent VAT obligations in Sandbox environment HOT 4
- Timeout configuration HOT 2
- 403 - Forbidden - this endpoint is not available HOT 2
- VAT Penalty API - Discrepancy in API JSON names or keys HOT 2
- Incorrect Open VAT Obligations returned HOT 2
- RedirectURI stopped working HOT 1
- HMRC portal RedirectURI stopped working
- Can't get the /financial-details endpoint working in the sandbox HOT 5
- Sandbox: Gov-Test-Scenario header QUARTERLY_OBS_01_OPEN causes 500 Internal Server Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vat-api.