Empty rows on Mac M1

Expected behavior

Display my local data.

Actual behavior

I can’t display my local data - the only thing I can see is an infinite loading without any errors on my logs… On my old my, it’s working fine and my colleague as the same problem with a m1 mac, is Forest doesn’t support the M1 architecture?

Failure Logs

No logs, no errors

Context

  • NodeJs : 14.17.4
  • Package Version: 8.0.5
  • Express Version: 4.16.3
  • Sequelize Version: 5.15.1
  • Database Dialect: PSQL
  • Database Version: 13
  • Project Name: Julaya

Hi @Charles_Talbot !
Your mac architecture shouldn’t hinder your ability to use Forest, is your project identical on both your macs ?

Hello Nicolas_Sailly

Thank you for you quick answer, my two projects seems identical. We made tests on 4 macs, 2 old (no issues) and 2 M1 (same issues).

Maybe the issue come from our fresh install of “forest-express-sequelize” : “^8.0.5”?

Charles

If the projects are the same, then you should have the same version of the package, so It can’t be the issue.
Do you see the infinite loading on you terminal or on your browser ?

I have the same version (same code, same version of packages) - the infinite loading is on the browser without error on the browser console / server.

Can you check on your browser, in the network tab what call fails/is pending ?

The GET request itself and the count request still pending. It seems the DB connection is the issue : do you have tips to debug it? (we have two DB postgresql)

Hello @Charles_Talbot,

First, could confirm in your package.json file that the pg module is at version 8 or more? If not, please update it. There is an incompatibility with node 14 and previous pg module versions.

When you say “two DB postgresql”, do you mean your Forest Agent simultaneously connects to two databases ?

For debugging, you can try to start your agent with: DEBUG=* npm start
It should log a lot of things… but lines starting with sequelize:connection, sequelize:pooland sequelize:sql can help figuring out what’s going on with the database.

Do no hesitate to paste logs here, I’ll have a look at them.

1 Like

@anon79585656 @anon94532230 thank you for your help, the issue is the incompatibility between pg version (~6.x) and node (~14.x).

Stupid mistake from our side - nothing related to new mac M1 :joy:

1 Like

Glad to hear your issue is solved :slight_smile: