noi-techpark / it.bz.beacon.api

This repository contains the sourcecode of the administration web-app that allows to manage the beacon network installed withing the Beacon Suedtirol project.
Other
1 stars 3 forks source link

Opening the web admin app does not show beacons on the map #63

Closed Piiit closed 3 years ago

Piiit commented 3 years ago

The browser reveals: error on /v1/admin/beacons

XHRGEThttps://api.beacon.testingmachine.eu/v1/admin/beacons
[HTTP/1.1 500  131ms]

    timestamp   1606404572813
    status  500
    error   "Internal Server Error"
    message "Null value was assigned to a property [class it.bz.beacon.api.db.model.Beacon.eddystoneEid] of primitive type setter of it.bz.beacon.api.db.model.Beacon.eddystoneEid; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property [class it.bz.beacon.api.db.model.Beacon.eddystoneEid] of primitive type setter of it.bz.beacon.api.db.model.Beacon.eddystoneEid"
    path    "/v1/admin/beacons"

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.beacon.testingmachine.eu/v1/admin/beacons. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

CORS is set to *, but it seems that the headers are not build.

Piiit commented 3 years ago

@sseppi FYI

davidebz commented 3 years ago

Can you please send me per e-mail an account on

https://admin.beacon.testingmachine.eu

to test the problem?

Piiit commented 3 years ago

@davidebz You should have one already... user dmontesin

davidebz commented 3 years ago

The main problem here is that the API return an error 500. I will fix this first.

@noctho can you please check this?

message: Null value was assigned to a property [class it.bz.beacon.api.db.model.Beacon.eddystoneEid] of primitive type setter of it.bz.beacon.api.db.model.Beacon.eddystoneEid; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property [class it.bz.beacon.api.db.model.Beacon.eddystoneEid] of primitive type setter of it.bz.beacon.api.db.model.Beacon.eddystoneEid

noctho commented 3 years ago

The main problem here is that the API return an error 500. I will fix this first.

@noctho can you please check this?

message: Null value was assigned to a property [class it.bz.beacon.api.db.model.Beacon.eddystoneEid] of primitive type setter of it.bz.beacon.api.db.model.Beacon.eddystoneEid; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property [class it.bz.beacon.api.db.model.Beacon.eddystoneEid] of primitive type setter of it.bz.beacon.api.db.model.Beacon.eddystoneEid

I have fixed this with PR #66

Piiit commented 3 years ago

@noctho Please move the issues on your Kanban... I have merged the PR already, and it seems to we would be ready for a "Review"... Thank you