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

x-correlation-id noting being returned causing LogObject Error #226

Open
markxigen opened this issue Sep 15, 2024 · 1 comment
Open

x-correlation-id noting being returned causing LogObject Error #226

markxigen opened this issue Sep 15, 2024 · 1 comment

Comments

@markxigen
Copy link

On Friday 13th 2024 at approximately 4pm GMT

Separate websites using the Avatax SDK suddenly failed on the checkout due to a missing API Response header called: x-correlation-id

Var dumping the response showed no header value called x-correlation-id, and scanning the code i could not find anywhere that sends this header in the initial request.

I'm not 100% on this but i suspect Avalera API response has suddenly stopping including the x-correlation-id.

This is the function in LogObject.php:

private function populateCommonResponseInfo($response) { $this-> populateTotalExecutionTime(); $this-> headerCorrelationId = $response-> getHeader('x-correlation-id')[0]; $this-> statusCode = $response-> getStatusCode(); }

@creativein
Copy link

creativein commented Sep 23, 2024

private function populateCommonResponseInfo($response)
    {
        $this-> populateTotalExecutionTime();
        $this-> headerCorrelationId = $response-> getHeader('x-correlation-id')[0];
        $this-> statusCode = $response-> getStatusCode();
    }

I believe Avatax API has changed the HEADER in response. I was not able to figure out to disable the function call for LogObject if we can do that this will temporary solve the issues until the maintainers fix the issue.

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