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

BP-4175 Fetch buckaroo table through a function to accomodate prefixes if there are any #1167

Conversation

wahidnory
Copy link
Contributor

Issue

One of our clients had issues with xcore synchronisation, it seemed that all the orders were failing to sync.
After looking through error messages I've found out that there's a join that's failing pretty bad and causing a 500 error.
The error in question

#19 {main} {"exception":"[object] (Exception(code: 1146): Report ID: webapi-67a385357870c; Message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'REDACTED.buckaroo_magento2_giftcard' doesn't exist, query was: SELECT `main_table`.*, `buckaroo_magento2_giftcard`.`label` FROM `a4h_buckaroo_magento2_group_transaction` AS `main_table`

Currently

It seems that the helper function is trying to join on a table but without any prefixes. Just plainly the buckaroo_ tables.
This is a problem in one of our clients installation.

Fixed

To solve this I've adjusted the fetching through a Resource Model.

Please consider this PR as a hotfix, it shouldn't break any functionality.

Thank you in advance.

@Buckaroo-Rene Buckaroo-Rene changed the title Fetch buckaroo table through a function to accomodate prefixes if there are any BP-4165 Fetch buckaroo table through a function to accomodate prefixes if there are any Feb 6, 2025
@Buckaroo-Rene
Copy link
Contributor

Hi @wahidnory ,

Thanks for reporting this issue. We'll investigate it right away.

@Buckaroo-Rene Buckaroo-Rene self-assigned this Feb 6, 2025
@Buckaroo-Rene Buckaroo-Rene added Status: In progress We are working on this issue. Priority: Normal This issue has a normal/medium priority. labels Feb 6, 2025
@vegimcarkaxhija vegimcarkaxhija changed the base branch from master to BP-4175-Fetch-Buckaroo-table-using-a-function-to-accommodate-prefixes-if-any-1167 February 6, 2025 12:11
@vegimcarkaxhija vegimcarkaxhija changed the title BP-4165 Fetch buckaroo table through a function to accomodate prefixes if there are any BP-4175 Fetch buckaroo table through a function to accomodate prefixes if there are any Feb 6, 2025
@vegimcarkaxhija vegimcarkaxhija merged commit 84f78fc into buckaroo-it:BP-4175-Fetch-Buckaroo-table-using-a-function-to-accommodate-prefixes-if-any-1167 Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Normal This issue has a normal/medium priority. Status: In progress We are working on this issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants