You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello
I have some problems with my application with Quick start(Docker). i dont know what happend
the error infomation is:
2021/07/08 03:35:44 /opt/model/document.go:62 record not found
[0.102ms] [rows:0] SELECT * FROM "document" WHERE key = 'C098A116-01BC-4036-ACC2-E8F2153325C0' and channel_id = 1 and chaincode_name = 'daniu_1' ORDER BY "document"."id" LIMIT 1
time="2021-07-08T03:35:44Z" level=info msg="finish syncing blocks"
time="2021-07-08T03:35:44Z" level=info msg="start schema analysis"
panic: runtime error: index out of range [0] with length 0
hello
I have some problems with my application with Quick start(Docker). i dont know what happend
the error infomation is:
2021/07/08 03:35:44 /opt/model/document.go:62 record not found
[0.102ms] [rows:0] SELECT * FROM "document" WHERE key = 'C098A116-01BC-4036-ACC2-E8F2153325C0' and channel_id = 1 and chaincode_name = 'daniu_1' ORDER BY "document"."id" LIMIT 1
time="2021-07-08T03:35:44Z" level=info msg="finish syncing blocks"
time="2021-07-08T03:35:44Z" level=info msg="start schema analysis"
panic: runtime error: index out of range [0] with length 0
goroutine 41 [running]:
github.com/FujitsuLaboratories/ledgerdata-refiner/sync/analysis.iterGetSchemaInJson(0xc001761680, 0xc0017616b0)
/opt/sync/analysis/schema_analysis.go:113 +0x4f7
github.com/FujitsuLaboratories/ledgerdata-refiner/sync/analysis.GetSchemaInJson(0xc000414780, 0x246, 0x20, 0xc001980090, 0x7, 0x9)
/opt/sync/analysis/schema_analysis.go:98 +0x2db
github.com/FujitsuLaboratories/ledgerdata-refiner/sync.(*SyncService).determineSchema(0xc000345320, 0x2e, 0x1, 0xc001ae0478, 0x7, 0x0, 0xc00149dfb0, 0x24, 0xc000414780, 0x246, ...)
/opt/sync/sync_schema.go:152 +0x52f
github.com/FujitsuLaboratories/ledgerdata-refiner/sync.(*SyncService).analyzeSchema(0xc000345320, 0x0, 0x0)
/opt/sync/sync_schema.go:73 +0x2c2
github.com/FujitsuLaboratories/ledgerdata-refiner/sync.(*SyncService).schemaAnalysis(0xc000345320)
/opt/sync/sync_schema.go:28 +0x103
github.com/FujitsuLaboratories/ledgerdata-refiner/sync.(*SyncService).syncWork(0xc000345320, 0x153fde0, 0xc001146300)
/opt/sync/sync_ledgerdata.go:128 +0x17e
created by github.com/FujitsuLaboratories/ledgerdata-refiner/sync.(*SyncService).Initialize
/opt/sync/sync_ledgerdata.go:73 +0x87
my schema table in my postgresql is :
["Content","CreateTime","Ext","ObjectID","ObjectTypeCode","Result","Uuid","docType"]
{
"Content": "string",
"CreateTime": "float64",
"Ext": "string",
"ObjectID": "string",
"ObjectTypeCode": "float64",
"Result": "string",
"Uuid": "string",
"docType": "string"
}
["DLBackPhotoURL","DLFrontPhotoURL","DLOrg","DLValidFrom","DLValidUntil","DriverName","Ext","IDNumber","Mobile","Notes","QCNumber","VehicleType","docType"]
{
"DLBackPhotoURL": "string",
"DLFrontPhotoURL": "string",
"DLOrg": "string",
"DLValidFrom": "float64",
"DLValidUntil": "float64",
"DriverName": "string",
"Ext": "string",
"IDNumber": "string",
"Mobile": "string",
"Notes": "string",
"QCNumber": "string",
"VehicleType": "string",
"docType": "string"
}
["Content","ContentType","CreateTime","Ext","Level","Notes","ObjectID","ObjectTypeCode","Uuid","Valuator","docType"]
{
"Content": "string",
"ContentType": "float64",
"CreateTime": "string",
"Ext": "string",
"Level": "float64",
"Notes": "string",
"ObjectID": "string",
"ObjectTypeCode": "float64",
"Uuid": "string",
"Valuator": "string",
"docType": "string"
}
["ShipInfo","TruckInfo","VehicleNumber","VehicleTypeCode","docType"]
{
"ShipInfo": "string",
"TruckInfo": "string",
"VehicleNumber": "string",
"VehicleTypeCode": "string",
"docType": "string"
}
["Ext","IDCardBackPhotoURL","IDCardFrontPhotoURL","UserID","UserMobile","UserName","docType"]
{
"Ext": "string",
"IDCardBackPhotoURL": "string",
"IDCardFrontPhotoURL": "string",
"UserID": "string",
"UserMobile": "string",
"UserName": "string",
"docType": "string"
}
The text was updated successfully, but these errors were encountered: