Open sentry-io[bot] opened 1 year ago
I'm experiencing a similar issue too.
http: panic serving 127.0.0.1:54512: runtime error: invalid memory address or nil pointer dereference
goroutine 8200 [running]:
net/http.(*conn).serve.func1()
net/http/server.go:1850 +0xb0
panic({0x1044fd6a0, 0x1055847d0})
runtime/panic.go:890 +0x258
github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x0?, 0x0?}, 0x0?, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14001576de8?)
I'm using flow dev
supper command with the default project created by flow setup
.
flow emulator 6:07PM INF ⚙️ Using service account 0xf8d6e0586b0a20c7 serviceAddress=f8d6e0586b0a20c7 serviceHashAlgo=SHA3_256 servicePrivKey=6d12eebfef9866c9b6fa92b97c6e705c26a1785b1e7944da701fc545a51d4673 servicePubKey=4c8fbd44abd7c60c705a38f47138ca23a4edf32ca7ba477e551b1e3577dfbd07e133706f3429ac3992d9aa1f86ffc2f5ed27891ad7070600649fd66964b24df6 serviceSigAlgo=ECDSA_P256 6:07PM INF 📜 Flow contract FlowServiceAccount=0xf8d6e0586b0a20c7 6:07PM INF 📜 Flow contract FlowToken=0x0ae53cb6e3f42a79 6:07PM INF 📜 Flow contract FungibleToken=0xee82856bf20e2aa6 6:07PM INF 📜 Flow contract FlowFees=0xe5a8b7f23e8b548f 6:07PM INF 📜 Flow contract FlowStorageFees=0xf8d6e0586b0a20c7 6:07PM INF 🌱 Starting gRPC server on port 3569 port=3569 6:07PM INF 🌱 Starting REST API on port 8888 port=8888 6:07PM INF 🌱 Starting admin server on port 8080 port=8080 6:07PM INF 🌱 Starting debugger on port 2345 port=2345 6:07PM INF ✅ Started REST API server on port 8888 port=8888 6:07PM INF ✅ Started gRPC server on port 3569 port=3569 6:07PM INF ✅ Started admin server on port 8080 port=8080 6:08PM INF ⭐ Transaction executed computationUsed=7 txID=f363b47b0695a91c40aead3e6faa48a9688633f8059e2644a066ad1eb7238ae9 6:08PM INF ⭐ Transaction executed computationUsed=7 txID=a4fa55e8a72af64ca4e57904d252612aa428a5724c2d415107d60990c38124a8 6:08PM INF ⭐ Transaction executed computationUsed=4 txID=8181d312a54ce2225f939530ba19e4456467c8297f059c30b1fad607c1454a85 6:08PM INF ⭐ Transaction executed computationUsed=7 txID=68658e19a7d16ae6473c6e2a5dce13cdfe7e4a1c0cf271986cd0b5b2d3cd1930 6:08PM INF ⭐ Transaction executed computationUsed=7 txID=4ada922833461609cd5513674536d9a75ba5e15e0e2ac48a0d6299fb69f7cfc6 6:08PM INF ⭐ Transaction executed computationUsed=4 txID=803bbc239300ce090347e79eff5d18b70d24acd2675a8603d5b23fa77b869a43 6:09PM INF ⭐ Transaction executed computationUsed=2 txID=c0ed1215a0fe4d060ecee3305c992336dab5c78772507d965f708e48e01788de 6:09PM INF ⭐ Transaction executed computationUsed=4 txID=b437500240e47e1630cc7480f76d8201df765400363c2cf8686caced8df244d4 4:20PM INF ⭐ Transaction executed computationUsed=7 txID=3d87104f3a739e191eb505153cd8bd9e164585e7c3fb1b804c124e4d30fda23b 4:20PM INF ⭐ Transaction executed computationUsed=7 txID=8ffa17bdd370ac94d9ccb386f481cd241068e348a1f22a0d7b32721bad60f3be 4:20PM INF ⭐ Transaction executed computationUsed=4 txID=c87aa5d706e118a147374c640a79ef6e476871d19720124c165c4cc666a490da 4:20PM INF ⭐ Transaction executed computationUsed=7 txID=4848b260dbe75a6f61a58f5a719fb6d07597de7f9a0f894f0573a06d47ad7764 4:20PM INF ⭐ Transaction executed computationUsed=7 txID=dc5371d6bc6b51e42f1c3c2330f18e6c0e050f130852bc465aa62b8b486b9848 4:20PM INF ⭐ Transaction executed computationUsed=4 txID=aea1bd9f1561b8c48d39b57ecbe23e0736484db8bf1006ea52f4cf6c19ce8ecd 4:28PM INF ⭐ Transaction executed computationUsed=2 txID=37baeecae873777c231cbdb1ebeaa2f3b25510181199973d53c8c22b7f597848 4:28PM INF ⭐ Transaction executed computationUsed=4 txID=a6acce1efe2302b89f7ecd158b29d5394dcf7efc109cfb7f0f7ca00cdae00af6 4:30PM INF ⭐ Transaction executed computationUsed=10 txID=95a388928862d2aa75b5d25edfafd75425f599f54ae6ba19f870c4d89b803810 4:30PM INF LOG [95a388] 1676820494.00000000 4:45PM INF ⭐ Transaction executed computationUsed=2 txID=5fc46194b91ff729cc3d83a9b8d864a17fd5a518cf3e2f6e0c25e5d7d5d8d2c4 4:45PM WRN ❗ Transaction reverted computationUsed=3 txID=c2d5f22d9ef625974161ee96c02fde4a5de0cf9f9bd0a51afa69efdd2d0dba79 4:45PM WRN ERR [c2d5f2] [Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: cannot deploy invalid contract --> c2d5f22d9ef625974161ee96c02fde4a5de0cf9f9bd0a51afa69efdd2d0dba79:4:3 | 4 | signer.contracts.add(name: name, code: code.decodeHex() ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: mismatched types --> f669cb8d41ce0c74.Person:32:30 | 32 | self.expiration = getCurrentBlock().timestamp | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Int8`, got `UFix64` 4:46PM INF ⭐ Transaction executed computationUsed=4 txID=d04bacbb04c5d5861808af133a14870003083b4053432c453c262f0a21bca8a5 2023/02/19 16:46:05 http: panic serving 127.0.0.1:54512: runtime error: invalid memory address or nil pointer dereference goroutine 8200 [running]: net/http.(*conn).serve.func1() net/http/server.go:1850 +0xb0 panic({0x1044fd6a0, 0x1055847d0}) runtime/panic.go:890 +0x258 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x0?, 0x0?}, 0x0?, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14001576de8?) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:250 +0x15e4 github.com/onflow/cadence/runtime.exportCompositeValue.func1() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:394 +0x270 github.com/onflow/cadence/runtime.exportCompositeValue.func3() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:432 +0x24 github.com/onflow/cadence.NewMeteredResource({0x1047a1340?, 0x1400138f0e0?}, 0x14000a66120?, 0x14001576608) github.com/onflow/cadence@v0.31.3/values.go:1612 +0x9c github.com/onflow/cadence/runtime.exportCompositeValue({0x1047c9df0, 0x1400179c5a0}, 0x1400138f0e0, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14001576de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:428 +0x1f4 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x1047c9df0?, 0x1400179c5a0?}, 0x1400138f0e0, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14001576de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:192 +0x640 github.com/onflow/cadence/runtime.ExportValue(...) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:54 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage.func1(0x0?) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1161 +0x1d4 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000cc5180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1177 +0x8dc github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x1400060e180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/server/backend/backend.go:636 +0xa0 github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400118a600?, 0x14000c66c00?, 0x1400060e180?, 0x14000c6e7f0?}, {0x1047b43e0, 0x140028640e0}, 0x104446800?) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:237 +0x128 net/http.HandlerFunc.ServeHTTP(0x14000892300?, {0x1047b43e0?, 0x140028640e0?}, 0x140008fa2c1?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400118a600, {0x1047b43e0, 0x140028640e0}, 0x14000338f00) github.com/gorilla/mux@v1.8.0/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:72 net/http.(*ServeMux).ServeHTTP(0x0?, {0x1047b43e0, 0x140028640e0}, 0x14000338f00) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x14000e43da0?}, {0x1047b43e0, 0x140028640e0}, 0x14000338f00) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x14001f628c0, {0x1047b61d0, 0x140005ca1b0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444 4:49PM WRN ❗ Transaction reverted computationUsed=0 txID=9f37724cc372cd97028c2177cda46ce1df9d37b27bbc308ac6d5f533a327faf4 4:49PM WRN ERR [9f3772] [Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: loss of resource --> 9f37724cc372cd97028c2177cda46ce1df9d37b27bbc308ac6d5f533a327faf4:13:12 | 13 | let friendship <- self.acc.load<@Person.Friendship>(from: /storage/friendship) | ^^^^^^^^^^ 2023/02/19 16:49:32 http: panic serving 127.0.0.1:55589: runtime error: invalid memory address or nil pointer dereference goroutine 9832 [running]: net/http.(*conn).serve.func1() net/http/server.go:1850 +0xb0 panic({0x1044fd6a0, 0x1055847d0}) runtime/panic.go:890 +0x258 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x0?, 0x0?}, 0x0?, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002b1cde8?) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:250 +0x15e4 github.com/onflow/cadence/runtime.exportCompositeValue.func1() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:394 +0x270 github.com/onflow/cadence/runtime.exportCompositeValue.func3() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:432 +0x24 github.com/onflow/cadence.NewMeteredResource({0x1047a1340?, 0x140011ca240?}, 0x1400309aa20?, 0x14002b1c608) github.com/onflow/cadence@v0.31.3/values.go:1612 +0x9c github.com/onflow/cadence/runtime.exportCompositeValue({0x1047c9df0, 0x140021f0000}, 0x140011ca240, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002b1cde8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:428 +0x1f4 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x1047c9df0?, 0x140021f0000?}, 0x140011ca240, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002b1cde8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:192 +0x640 github.com/onflow/cadence/runtime.ExportValue(...) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:54 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage.func1(0x0?) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1161 +0x1d4 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000cc5180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1177 +0x8dc github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x1400060e180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/server/backend/backend.go:636 +0xa0 github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400118a600?, 0x14000c66c00?, 0x1400060e180?, 0x14000c6e7f0?}, {0x1047b43e0, 0x1400272e1c0}, 0x104446800?) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:237 +0x128 net/http.HandlerFunc.ServeHTTP(0x140015c4c00?, {0x1047b43e0?, 0x1400272e1c0?}, 0x14001a5ff81?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400118a600, {0x1047b43e0, 0x1400272e1c0}, 0x140015c4b00) github.com/gorilla/mux@v1.8.0/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:72 net/http.(*ServeMux).ServeHTTP(0x0?, {0x1047b43e0, 0x1400272e1c0}, 0x140015c4b00) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x140018a27b0?}, {0x1047b43e0, 0x1400272e1c0}, 0x140015c4b00) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x1400088f4a0, {0x1047b61d0, 0x140005ca1b0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444 4:50PM WRN ❗ Transaction reverted computationUsed=0 txID=bcd332c43741d6d2e9853549dfc54d294c437d2afa94c242f3b777bba3df61d4 4:50PM WRN ERR [bcd332] [Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: mismatched types --> bcd332c43741d6d2e9853549dfc54d294c437d2afa94c242f3b777bba3df61d4:14:12 | 14 | log(friendship) | ^^^^^^^^^^ expected `AnyStruct`, got `Person.Friendship?` error: mismatched types for type parameter --> bcd332c43741d6d2e9853549dfc54d294c437d2afa94c242f3b777bba3df61d4:15:42 | 15 | self.acc.save<@Person.Friendship>(<-friendship, to: StoragePath(identifier: "friendship")!) | ^^^^^^^^^^^^ type parameter T is bound to `Person.Friendship`, but got `Person.Friendship?` here error: mismatched types --> bcd332c43741d6d2e9853549dfc54d294c437d2afa94c242f3b777bba3df61d4:15:42 | 15 | self.acc.save<@Person.Friendship>(<-friendship, to: StoragePath(identifier: "friendship")!) | ^^^^^^^^^^^^ expected `Person.Friendship`, got `Person.Friendship?` 2023/02/19 16:50:49 http: panic serving 127.0.0.1:55996: runtime error: invalid memory address or nil pointer dereference goroutine 10472 [running]: net/http.(*conn).serve.func1() net/http/server.go:1850 +0xb0 panic({0x1044fd6a0, 0x1055847d0}) runtime/panic.go:890 +0x258 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x0?, 0x0?}, 0x0?, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002c32de8?) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:250 +0x15e4 github.com/onflow/cadence/runtime.exportCompositeValue.func1() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:394 +0x270 github.com/onflow/cadence/runtime.exportCompositeValue.func3() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:432 +0x24 github.com/onflow/cadence.NewMeteredResource({0x1047a1340?, 0x14000909620?}, 0x14000c70b40?, 0x14002c32608) github.com/onflow/cadence@v0.31.3/values.go:1612 +0x9c github.com/onflow/cadence/runtime.exportCompositeValue({0x1047c9df0, 0x14000a99290}, 0x14000909620, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002c32de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:428 +0x1f4 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x1047c9df0?, 0x14000a99290?}, 0x14000909620, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002c32de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:192 +0x640 github.com/onflow/cadence/runtime.ExportValue(...) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:54 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage.func1(0x0?) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1161 +0x1d4 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000cc5180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1177 +0x8dc github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x1400060e180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/server/backend/backend.go:636 +0xa0 github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400118a600?, 0x14000c66c00?, 0x1400060e180?, 0x14000c6e7f0?}, {0x1047b43e0, 0x1400118e2a0}, 0x104446800?) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:237 +0x128 net/http.HandlerFunc.ServeHTTP(0x14001556600?, {0x1047b43e0?, 0x1400118e2a0?}, 0x1400186e841?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400118a600, {0x1047b43e0, 0x1400118e2a0}, 0x14001556500) github.com/gorilla/mux@v1.8.0/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:72 net/http.(*ServeMux).ServeHTTP(0x0?, {0x1047b43e0, 0x1400118e2a0}, 0x14001556500) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x14001f00d50?}, {0x1047b43e0, 0x1400118e2a0}, 0x14001556500) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x140011ea0a0, {0x1047b61d0, 0x140005ca1b0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444 4:51PM WRN ❗ Transaction reverted computationUsed=0 txID=c55fc8ce6078cf590d6bbf106d4c382c3237a2fccf6bda51aa39ff9eff9b6597 4:51PM WRN ERR [c55fc8] [Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: mismatched types --> c55fc8ce6078cf590d6bbf106d4c382c3237a2fccf6bda51aa39ff9eff9b6597:14:12 | 14 | log(friendship) | ^^^^^^^^^^ expected `AnyStruct`, got `Person.Friendship?` 2023/02/19 16:51:05 http: panic serving 127.0.0.1:56096: runtime error: invalid memory address or nil pointer dereference goroutine 10442 [running]: net/http.(*conn).serve.func1() net/http/server.go:1850 +0xb0 panic({0x1044fd6a0, 0x1055847d0}) runtime/panic.go:890 +0x258 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x0?, 0x0?}, 0x0?, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14003110de8?) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:250 +0x15e4 github.com/onflow/cadence/runtime.exportCompositeValue.func1() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:394 +0x270 github.com/onflow/cadence/runtime.exportCompositeValue.func3() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:432 +0x24 github.com/onflow/cadence.NewMeteredResource({0x1047a1340?, 0x14000ca1560?}, 0x140018387e0?, 0x14003110608) github.com/onflow/cadence@v0.31.3/values.go:1612 +0x9c github.com/onflow/cadence/runtime.exportCompositeValue({0x1047c9df0, 0x14000f57290}, 0x14000ca1560, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14003110de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:428 +0x1f4 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x1047c9df0?, 0x14000f57290?}, 0x14000ca1560, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14003110de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:192 +0x640 github.com/onflow/cadence/runtime.ExportValue(...) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:54 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage.func1(0x0?) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1161 +0x1d4 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000cc5180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1177 +0x8dc github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x1400060e180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/server/backend/backend.go:636 +0xa0 github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400118a600?, 0x14000c66c00?, 0x1400060e180?, 0x14000c6e7f0?}, {0x1047b43e0, 0x14001a682a0}, 0x104446800?) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:237 +0x128 net/http.HandlerFunc.ServeHTTP(0x14001556400?, {0x1047b43e0?, 0x14001a682a0?}, 0x1400201e1e1?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400118a600, {0x1047b43e0, 0x14001a682a0}, 0x14001556300) github.com/gorilla/mux@v1.8.0/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:72 net/http.(*ServeMux).ServeHTTP(0x0?, {0x1047b43e0, 0x14001a682a0}, 0x14001556300) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x14001616ba0?}, {0x1047b43e0, 0x14001a682a0}, 0x14001556300) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x14001157680, {0x1047b61d0, 0x140005ca1b0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444 4:51PM WRN ❗ Transaction reverted computationUsed=0 txID=e9e0f66d0946e15ad354a6ddc7d1a99e1303a88653e52e99f8ba7c3ecbb5ae88 4:51PM WRN ERR [e9e0f6] [Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: value of type `Person.Friendship?` has no member `expiration` --> e9e0f66d0946e15ad354a6ddc7d1a99e1303a88653e52e99f8ba7c3ecbb5ae88:14:23 | 14 | log(friendship.expiration) | ^^^^^^^^^^ type is optional, consider optional-chaining: ?.expiration 2023/02/19 16:51:27 http: panic serving 127.0.0.1:56225: runtime error: invalid memory address or nil pointer dereference goroutine 10827 [running]: net/http.(*conn).serve.func1() net/http/server.go:1850 +0xb0 panic({0x1044fd6a0, 0x1055847d0}) runtime/panic.go:890 +0x258 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x0?, 0x0?}, 0x0?, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002f20de8?) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:250 +0x15e4 github.com/onflow/cadence/runtime.exportCompositeValue.func1() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:394 +0x270 github.com/onflow/cadence/runtime.exportCompositeValue.func3() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:432 +0x24 github.com/onflow/cadence.NewMeteredResource({0x1047a1340?, 0x140011ca600?}, 0x14001808ea0?, 0x14002f20608) github.com/onflow/cadence@v0.31.3/values.go:1612 +0x9c github.com/onflow/cadence/runtime.exportCompositeValue({0x1047c9df0, 0x14000f0b4d0}, 0x140011ca600, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002f20de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:428 +0x1f4 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x1047c9df0?, 0x14000f0b4d0?}, 0x140011ca600, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002f20de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:192 +0x640 github.com/onflow/cadence/runtime.ExportValue(...) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:54 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage.func1(0x0?) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1161 +0x1d4 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000cc5180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1177 +0x8dc github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x1400060e180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/server/backend/backend.go:636 +0xa0 github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400118a600?, 0x14000c66c00?, 0x1400060e180?, 0x14000c6e7f0?}, {0x1047b43e0, 0x1400118f0a0}, 0x104446800?) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:237 +0x128 net/http.HandlerFunc.ServeHTTP(0x14001557100?, {0x1047b43e0?, 0x1400118f0a0?}, 0x14000aa62f1?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400118a600, {0x1047b43e0, 0x1400118f0a0}, 0x14001557000) github.com/gorilla/mux@v1.8.0/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:72 net/http.(*ServeMux).ServeHTTP(0x0?, {0x1047b43e0, 0x1400118f0a0}, 0x14001557000) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x14002191b30?}, {0x1047b43e0, 0x1400118f0a0}, 0x14001557000) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x140011a8320, {0x1047b61d0, 0x140005ca1b0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444 4:51PM WRN ❗ Transaction reverted computationUsed=4 txID=126a8da745fd1a960742b64544c492cff7eda712bebcf6ce5a1734a8d6c63a26 4:51PM WRN ERR [126a8d] [Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: missing value for member `expiration` --> 126a8da745fd1a960742b64544c492cff7eda712bebcf6ce5a1734a8d6c63a26:14:12 | 14 | log(friendship?.expiration) | ^^^^^^^^^^^^^^^^^^^^^^ 2023/02/19 16:51:36 http: panic serving 127.0.0.1:56290: runtime error: invalid memory address or nil pointer dereference goroutine 10753 [running]: net/http.(*conn).serve.func1() net/http/server.go:1850 +0xb0 panic({0x1044fd6a0, 0x1055847d0}) runtime/panic.go:890 +0x258 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x0?, 0x0?}, 0x0?, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002542de8?) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:250 +0x15e4 github.com/onflow/cadence/runtime.exportCompositeValue.func1() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:394 +0x270 github.com/onflow/cadence/runtime.exportCompositeValue.func3() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:432 +0x24 github.com/onflow/cadence.NewMeteredResource({0x1047a1340?, 0x1400183d7a0?}, 0x14001cb0ea0?, 0x14002542608) github.com/onflow/cadence@v0.31.3/values.go:1612 +0x9c github.com/onflow/cadence/runtime.exportCompositeValue({0x1047c9df0, 0x14000ae2510}, 0x1400183d7a0, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002542de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:428 +0x1f4 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x1047c9df0?, 0x14000ae2510?}, 0x1400183d7a0, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002542de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:192 +0x640 github.com/onflow/cadence/runtime.ExportValue(...) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:54 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage.func1(0x0?) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1161 +0x1d4 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000cc5180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1177 +0x8dc github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x1400060e180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/server/backend/backend.go:636 +0xa0 github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400118a600?, 0x14000c66c00?, 0x1400060e180?, 0x14000c6e7f0?}, {0x1047b43e0, 0x14001a680e0}, 0x104446800?) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:237 +0x128 net/http.HandlerFunc.ServeHTTP(0x14000562600?, {0x1047b43e0?, 0x14001a680e0?}, 0x140008d95c1?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400118a600, {0x1047b43e0, 0x14001a680e0}, 0x14000562000) github.com/gorilla/mux@v1.8.0/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:72 net/http.(*ServeMux).ServeHTTP(0x0?, {0x1047b43e0, 0x14001a680e0}, 0x14000562000) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x140010ea180?}, {0x1047b43e0, 0x14001a680e0}, 0x14000562000) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x14001451b80, {0x1047b61d0, 0x140005ca1b0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444 4:52PM WRN ❗ Transaction reverted computationUsed=0 txID=7d262c6d6c2b75dbca34439ed8ca30ee3a0ec429a473a37276a94f81afde2389 4:52PM WRN ERR [7d262c] [Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: value of type `Person.Friendship?` has no member `expiration` --> 7d262c6d6c2b75dbca34439ed8ca30ee3a0ec429a473a37276a94f81afde2389:14:23 | 14 | log(friendship.expiration!) | ^^^^^^^^^^ type is optional, consider optional-chaining: ?.expiration 2023/02/19 16:52:10 http: panic serving 127.0.0.1:56474: runtime error: invalid memory address or nil pointer dereference goroutine 11240 [running]: net/http.(*conn).serve.func1() net/http/server.go:1850 +0xb0 panic({0x1044fd6a0, 0x1055847d0}) runtime/panic.go:890 +0x258 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x0?, 0x0?}, 0x0?, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002db8de8?) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:250 +0x15e4 github.com/onflow/cadence/runtime.exportCompositeValue.func1() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:394 +0x270 github.com/onflow/cadence/runtime.exportCompositeValue.func3() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:432 +0x24 github.com/onflow/cadence.NewMeteredResource({0x1047a1340?, 0x14000d4da40?}, 0x14000c70b40?, 0x14002db8608) github.com/onflow/cadence@v0.31.3/values.go:1612 +0x9c github.com/onflow/cadence/runtime.exportCompositeValue({0x1047c9df0, 0x14000925b00}, 0x14000d4da40, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002db8de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:428 +0x1f4 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x1047c9df0?, 0x14000925b00?}, 0x14000d4da40, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14002db8de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:192 +0x640 github.com/onflow/cadence/runtime.ExportValue(...) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:54 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage.func1(0x0?) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1161 +0x1d4 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000cc5180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1177 +0x8dc github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x1400060e180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/server/backend/backend.go:636 +0xa0 github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400118a600?, 0x14000c66c00?, 0x1400060e180?, 0x14000c6e7f0?}, {0x1047b43e0, 0x140028a4000}, 0x104446800?) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:237 +0x128 net/http.HandlerFunc.ServeHTTP(0x140010a6100?, {0x1047b43e0?, 0x140028a4000?}, 0x14001a1e1a1?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400118a600, {0x1047b43e0, 0x140028a4000}, 0x140010a6000) github.com/gorilla/mux@v1.8.0/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:72 net/http.(*ServeMux).ServeHTTP(0x0?, {0x1047b43e0, 0x140028a4000}, 0x140010a6000) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x14001da6180?}, {0x1047b43e0, 0x140028a4000}, 0x140010a6000) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x14000e67b80, {0x1047b61d0, 0x140005ca1b0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444 4:52PM WRN ❗ Transaction reverted computationUsed=4 txID=ee24be44414f96f615ed6d3792b8e05fdb96e752ebd4d479823a70d60cb3ac7f 4:52PM WRN ERR [ee24be] [Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: missing value for member `expiration` --> ee24be44414f96f615ed6d3792b8e05fdb96e752ebd4d479823a70d60cb3ac7f:14:12 | 14 | log(friendship?.expiration!) | ^^^^^^^^^^^^^^^^^^^^^^ 2023/02/19 16:52:25 http: panic serving 127.0.0.1:56570: runtime error: invalid memory address or nil pointer dereference goroutine 11430 [running]: net/http.(*conn).serve.func1() net/http/server.go:1850 +0xb0 panic({0x1044fd6a0, 0x1055847d0}) runtime/panic.go:890 +0x258 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x0?, 0x0?}, 0x0?, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14001362de8?) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:250 +0x15e4 github.com/onflow/cadence/runtime.exportCompositeValue.func1() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:394 +0x270 github.com/onflow/cadence/runtime.exportCompositeValue.func3() github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:432 +0x24 github.com/onflow/cadence.NewMeteredResource({0x1047a1340?, 0x14001651500?}, 0x140009e3560?, 0x14001362608) github.com/onflow/cadence@v0.31.3/values.go:1612 +0x9c github.com/onflow/cadence/runtime.exportCompositeValue({0x1047c9df0, 0x14001656900}, 0x14001651500, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14001362de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:428 +0x1f4 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x1047c9df0?, 0x14001656900?}, 0x14001651500, {{0x0?, 0x0?}, {0x0?, 0x0?}}, 0x14001362de8) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:192 +0x640 github.com/onflow/cadence/runtime.ExportValue(...) github.com/onflow/cadence@v0.31.3/runtime/convertValues.go:54 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage.func1(0x0?) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1161 +0x1d4 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000cc5180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/blockchain.go:1177 +0x8dc github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x1400060e180, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-emulator@v0.44.1/server/backend/backend.go:636 +0xa0 github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400118a600?, 0x14000c66c00?, 0x1400060e180?, 0x14000c6e7f0?}, {0x1047b43e0, 0x140009fc380}, 0x104446800?) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:237 +0x128 net/http.HandlerFunc.ServeHTTP(0x1400013fc00?, {0x1047b43e0?, 0x140009fc380?}, 0x14000ae7c51?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400118a600, {0x1047b43e0, 0x140009fc380}, 0x1400013fb00) github.com/gorilla/mux@v1.8.0/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/flow-emulator@v0.44.1/server/emulator.go:72 net/http.(*ServeMux).ServeHTTP(0x0?, {0x1047b43e0, 0x140009fc380}, 0x1400013fb00) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x14002019c20?}, {0x1047b43e0, 0x140009fc380}, 0x1400013fb00) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x14001088be0, {0x1047b61d0, 0x140005ca1b0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444
Sentry Issue: FLOW-CLI-F