Skip to content
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

Can't validate generated XML through the sandbox portal #22

Closed
AbdelrahmanManz opened this issue Dec 5, 2022 · 1 comment
Closed

Can't validate generated XML through the sandbox portal #22

AbdelrahmanManz opened this issue Dec 5, 2022 · 1 comment

Comments

@AbdelrahmanManz
Copy link

AbdelrahmanManz commented Dec 5, 2022

Hey, first of all thanks for your tremendous efforts, I was trying the library out and it works great, the compliance API succeeds. However, I can't seem to be able to write the generated XML to a file then upload that to the sandbox portal validator.

Errors:
image

Code used to write to file:

fs.writeFile(__dirname + '/tmp/test.xml', signed_invoice_string, {
            flag: "w"
          }, function(err) {
            if (err) {
              return console.log(err);
            }
            console.log("The file was saved!");
});

Validator link: https://sandbox.zatca.gov.sa/TestXML

@wes4m
Copy link
Owner

wes4m commented Dec 5, 2022

@AbdelrahmanManz Check this issue.
#16 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants