Make test and make api fails

Hello,
When I run make test, there are 2 failed test function with the same error message.
TestIntegration and TestHandler.
Failures:

  • …/lora-app-server/internal/handler/multihandler/multi_test.go
    Line 92:
    Expected: nil
    Actual: ‘insert error: sql: converting Exec argument #4’s type: unsupported type json.Rawmessage, a slice’

  • …/lora-app-server/internal/storage/integrations_test.go
    Line 47:
    Expected: nil
    Actual: ‘insert error: sql: converting Exec argument #4’s type: unsupported type json.Rawmessage, a slice’

I searched for similar problems, but i could not find anything. And I don’t know what to fix here.

Also when I want to make api, it fails.
The error message is :

  • google/api/annotations.proto: File not found or had errors.

I think the cause is that I have not set up the GOPATHLIST in the api/gen.sh file.
Can you tell me which Path I have to include?

Thank you!

Did you run make requirements? Every environment is different, therefore it is hard to tell what is wrong. Do you know which Go version you’re using for compiling?

Please note the provided docker-compose.yml file which you can use to setup a Docker development environment. That might be an easier way to get started :slight_smile:

See also: https://docs.loraserver.io/lora-app-server/community/source/.

Yes I run make requirements.
I use the latest go version and am working with Debian.

Okay I will try that, but I think later on I still have to solve that.
Thank you!