500 Errors on history of invoices

Hi,

I can’t see the following:

When putting Invoice Ninja on debug mode, I saw libraries errors and then I started to install the missing libraries, but they are now too many and I am wondering what is going on.

Here are some of the libraries that I had to install in order to go to the next error message. (Not all the lines are valid, it is just a dump of my history)
580 apt install libnss3
581 apt install libatk-1.0
582 apt install libatk
583 apt install libatk*
584 apt install libatk1*
585 apt install libatk1.0*
586 apt install libatk-bridge*
587 apt install libcups
588 apt install libcups*
589 apt install cups
590 apt install libdrm
591 apt install libdrm*
592 apt install libdrm-common
593 apt install libdrm-*
594 apt install libxkbcommon
595 apt install libxcomposite
596 apt install libx
597 apt install libx

598 apt install libxcomposite1
599 apt install libXdamage
600 apt install libXdamage*
601 apt install libXrandr*
602 apt install libgbm*
603 apt install libpango
604 apt install libpango*
605 apt install libpango-*
606 apg install libgtk-3
607 apt install libgtk-3
608 apt install libgtk
609 apt install libgtk-*

I am using a visualized container running Debian stable, apache and PHP 7.4.
image

Thank you in advance.

Hi,

Thanks for reporting this!

It looks like these are two separate issues.

cc @david

It looks like you a missing some dependencies for the google chromium to generate the PDFs please see here

I have installed the packaged listed on the link you suggested, then restarted the system (just in case).

Those are the packages…

ca-certificates
fonts-liberation
libappindicator3-1
libasound2
libatk-bridge2.0-0
libatk1.0-0
libc6
libcairo2
libcups2
libdbus-1-3
libexpat1
libfontconfig1
libgbm1
libgcc1
libglib2.0-0
libgtk-3-0
libnspr4
libnss3
libpango-1.0-0
libpangocairo-1.0-0
libstdc++6
libx11-6
libx11-xcb1
libxcb1
libxcomposite1
libxcursor1
libxdamage1
libxext6
libxfixes3
libxi6
libxrandr2
libxrender1
libxss1
libxtst6
lsb-release
wget
xdg-utils

Plus ```
‘libgbm-dev’ and ‘libxshmfence-dev’


Now the problem with the Invoices history is gone, but the problem with the history in the Recurring Invoices persist.

However, it display no error. It simply doesn't load. Any idea on how to proceed?

Thank you.

I believe I have a similar issue.
It happens on Invoices if I order by number and on Recurring Invoices if I order by next date.

I get this error on developer console:

{
    "message": "Request failed with status code 500",
    "name": "AxiosError",
    "config": {
        "transitional": {
            "silentJSONParsing": true,
            "forcedJSONParsing": true,
            "clarifyTimeoutError": false
        },
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {
            "FormData": null
        },
        "headers": {
            "Accept": "application/json, text/plain, */*",
            "X-Api-Token": "AQzHmbkkPdXQtQbfQmHUrRQyyjXXXXXXXXXXXXXXXXXXXXXX",
            "X-Requested-With": "XMLHttpRequest",
            "X-React": "true",
            "X-XSRF-TOKEN": "eyJpdiI6ImlPb1R6OHhNSk9pcUpEazhvLzhqQWc9PSIsInZhbHVlIjoiUGNsamXXXXXXXXXXXXXXXXXXXXXX="
        },
        "method": "get",
        "url": "https://XXXXX.XXXXX.XXX/api/v1/invoices?include=client.group_settings&without_deleted_clients=true&sort=number%7Casc&per_page=10&page=1&filter=&client_status=all&status=active"
    },
    "code": "ERR_BAD_RESPONSE",
    "status": 500
}

I get an error 500 when I look at recurring invoice - with invalid token errors as well.

{
    "message": "Request failed with status code 500",
    "name": "AxiosError",
    "config": {
        "transitional": {
            "silentJSONParsing": true,
            "forcedJSONParsing": true,
            "clarifyTimeoutError": false
        },
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {
            "FormData": null
        },
        "headers": {
            "Accept": "application/json, text/plain, */*",
            "X-Api-Token": "ea7iXyrRL8FRGIpdKUvumssDtkzwFv9AZXeU5nd8y4nEyBCs83JheI3OaoWhut29",
            "X-Requested-With": "XMLHttpRequest",
            "X-React": "true",
            "X-XSRF-TOKEN": "eyJpdiI6IlZvOFJBdlcvenVXZHBVdUVTNVhXeWc9PSIsInZhbHVlIjoiQzJHSE5iQTE0MlU2ekVCSktCRVorOUUzTUNVQldvWFdaOS8yci9HT0g2RllaTysraThmdGVVbFUyWUFrbDlNVVFIZ0taTFpCeDVKTFZ0L1ZCeW9EdkhweDROVEdycndHekxGbnlnZDcxdXRPVEZnc1JiKzIwNkd3eG93ZDdkLysiLCJtYWMiOiJmYmQ5YmM1MzhhY2NjMzc0YmYxMWFiYjczN2E2ODhhMmNlNjc4Yzc2YzQ4NGY0ZjNkNDZhZjE3MjAzY2UxNDk2IiwidGFnIjoiIn0="
        },
        "method": "get",
        "url": "https://billing.cloud-six.com/api/v1/recurring_invoices?include=client&without_deleted_clients=true&sort=next_send_datetime%7Casc&per_page=50&page=1&filter=&client_status=all&status=active"
    },
    "code": "ERR_BAD_RESPONSE",
    "status": 500
}

I also get a ton of other errors in my browser so I’m not sure what to look for.

I just realized, when I click to sort on next send date the error occurs, when I click status to resort the columns, the error is cleared and it works as expected.

@apintocr @cloudsix This is a very old post, if you’re currently seeing an issue please create a new post and we’ll try to help.