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

平台向设备发送指令的异常 #2

Open
yfsoftcom opened this issue Jul 10, 2020 · 0 comments
Open

平台向设备发送指令的异常 #2

yfsoftcom opened this issue Jul 10, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yfsoftcom
Copy link
Contributor

[2020-07-10 08:09:24]  [3.88ms]  SELECT * FROM "fim_project"  WHERE "fim_project"."deleted_at" IS NULL AND (("fim_project"."app_id" = 'ceaa191a') AND ("fim_project"."project_id" = 1)) ORDER BY "fim_project"."id" ASC LIMIT 1  
[1 rows affected or returned ] 
{"level":"debug","time":"2020-07-10T08:09:24.253+0800","file":"consumer/consumer.go:66","msg":"Get setting of the appID ceaa191a, projID 1 setting: map[light:map[appid:LT0314fbf27a4d2986 brand:lintai]]","ip":"10.0.0.8","app":"fpm-go-middleware"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xa0b0b2]

goroutine 47 [running]:
github.com/team4yf/fpm-iot-go-middleware/external/device/light/lintai.refreshToken(0xc000332ea0, 0x0, 0xc000109c90, 0x44d837, 0xc000109c90, 0x40cb28)
	/app/external/device/light/lintai/lintai.go:50 +0x42
github.com/team4yf/fpm-iot-go-middleware/external/device/light/lintai.(*defaultClient).Init(0xc000332ea0, 0x0, 0x0)
	/app/external/device/light/lintai/lintai.go:94 +0x80
github.com/team4yf/fpm-iot-go-middleware/external/device/light.NewAPIClient(0xc000303be0, 0x6, 0xc00032fba0, 0x12, 0x0, 0x0, 0x0, 0x0)
	/app/external/device/light/light.go:64 +0x235
github.com/team4yf/fpm-iot-go-middleware/consumer.controlLight(0xc000331dd0, 0xc0002af9f0, 0xc000324d00, 0x1, 0x4)
	/app/consumer/consumer.go:88 +0x10b
github.com/team4yf/fpm-iot-go-middleware/consumer.DefaultMqttConsumer.func1(0xb0db40, 0xc000328830, 0xb02c40, 0xc000324b60)
	/app/consumer/consumer.go:75 +0xc32
github.com/team4yf/fpm-iot-go-middleware/pkg/pubsub.(*mqttPS).Subscribe.func1(0xd3f960, 0xc00000a3c0, 0xd3d500, 0xc0002af9a0)
	/app/pkg/pubsub/pubsub.go:49 +0xe0
github.com/eclipse/paho%2emqtt%2egolang.(*router).matchAndDispatch.func1.1(0xc00009dc80, 0xc00000a3c0, 0xd3d500, 0xc0002af9a0)
	/go/pkg/mod/github.com/eclipse/[email protected]/router.go:158 +0x50
created by github.com/eclipse/paho%2emqtt%2egolang.(*router).matchAndDispatch.func1
	/go/pkg/mod/github.com/eclipse/[email protected]/router.go:157 +0x1e5

@yfsoftcom yfsoftcom added the bug Something isn't working label Jul 10, 2020
@yfsoftcom yfsoftcom self-assigned this Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant