Help, I don’t know where the error is
Help, I don’t know where the error is
show me your schema of it and full block code
I can send you the project, also please contact me in Telegram @dyahanexe API: https://api.anilibria.tv/v3/title/updates?limit=10
and when I turn it on it gives an error call JsonTools1.GetCurrentArrayLength
@sherbakovyt2 connect on companion and click right on block & do it
and send response here, its help to debug the error.
and your url
contain its - /storage/releases/posters/9909/TYekbUPzxsIMYikGA4Ud9bZOwjOwOE1X.jpg
in this where it is url start with http
or https
No need of external extn to achieve this. One web block is enough to convert this json into list and from this list we can select our requirements. By the way what is your error?
1.Expected a unique ID, got ‘1’.
Note: You will not see another error reported for 5 seconds.
2.The operation LoadImageAsync cannot accept the arguments: , [nothing], [empty-string]
Note: You will not see another error reported for 5 seconds.
I tried to fix the error, but nothing worked.
my Json template
{
“name”: “ListView”,
“metadata-version”: 1,
“author”: “Thiago Cavalcanti”,
“platforms”: [
“Kodular”
],
“keys”:[
“count”,
“image”,
“nome”
],
“components”: [
{
“id”: “{count}”,
“type”: “MakeroidCardView”,
“properties”: {
“Width”: -1,
“Height”: -1,
“Elevation”: 0,
“CornerRadius”: 16,
“ContentPaddingTop”: 2,
“ContentPaddingButtom”: 4,
“ContentPaddingLeft”: 0,
“ContentPaddingRight”: 0,
“FullClickable”: true,
“AlignHorizontal”: 3,
“BackgroundColor”: -14277082
},
“components”:[
{
“id”: “card_{count}”,
“type”: “MakeroidCardView”,
“properties”: {
“Width”: 128,
“Height”: 180,
“Elevation”: 0,
“CornerRadius”: 14,
“ContentPaddingTop”: 0,
“ContentPaddingButtom”: 0,
“ContentPaddingLeft”: 0,
“ContentPaddingRight”: 0,
“FullClickable”: true,
“AlignHorizontal”: 3
},
“components”: [
{
“id”: “img_{count}”,
“type”: “Image”,
“properties”: {
“Width”: 128,
“Height”: 180,
“Picture”: “{image}”
}
}
]
},
{
“id”: “nome_{count}”,
“type”: “Label”,
“properties”: {
“Width”: 108,
“Text”: “{nome}”,
“TextColor”: -1,
“FrontTypefaceImport”: “Montserrat Regular.ttf”,
“Marquee”: true,
“FontBold”: true
}
}
]
}
]
}
use this schema:
{
"name": "ListView",
"metadata-version": 1,
"author": "Thiago Cavalcanti",
"platforms": [
"creator.kodular.io"
],
"keys": [
"count",
"image_url",
"nome"
],
"components": [
{
"id": "Main_CV{count}",
"type": "MakeroidCardView",
"properties": {
"Width": -1,
"Height": -1,
"Elevation": 0,
"CornerRadius": 16,
"ContentPaddingTop": 2,
"ContentPaddingBottom": 4,
"ContentPaddingLeft": 0,
"ContentPaddingRight": 0,
"FullClickable": true,
"AlignHorizontal": 3,
"BackgroundColor": -14277082
},
"components": [
{
"id": "card_{count}",
"type": "MakeroidCardView",
"properties": {
"Width": 128,
"Height": 180,
"Elevation": 0,
"CornerRadius": 14,
"ContentPaddingTop": 0,
"ContentPaddingBottom": 0,
"ContentPaddingLeft": 0,
"ContentPaddingRight": 0,
"FullClickable": true,
"AlignHorizontal": 3
},
"components": [
{
"id": "img_{count}",
"type": "Image",
"properties": {
"Width": 128,
"Height": 180,
"Picture": "{image_url}"
}
}
]
},
{
"id": "nome_{count}",
"type": "Label",
"properties": {
"Width": 108,
"Text": "{nome}",
"TextColor": -1,
"FontTypefaceImport": "Montserrat Regular.ttf",
"Marquee": true,
"FontBold": true
}
}
]
}
]
}
and Blocks:
schema
{
"name": "Listview",
"metadata-version": 1,
"author": "Thiago Cavalcanti",
"platforms": [
"Kodular"
],
"keys": [
"count",
"image",
"nome"
],
"components": [
{
"id": "{count}",
"type": "MakeroidCardView",
"properties": {
"Width": -1,
"Height": -1,
"Elevation": 0,
"CornerRadius": 16,
"ContentPaddingTop": 2,
"ContentPaddingButtom": 4,
"ContentPaddingLeft": 0,
"ContentPaddingRight": 0,
"FullClickable": true,
"AlignHorizontal": 3,
"BackgroundColor": -14277082
},
"components": [
{
"id": "card_{count}",
"type": "MakeroidCardView",
"properties": {
"Width": 128,
"Height": 180,
"Elevation": 0,
"CornerRadius": 14,
"ContentPaddingTop": 0,
"ContentPaddingButtom": 0,
"ContentPaddingLeft": 0,
"ContentPaddingRight": 0,
"FullClickable": true,
"AlignHorizontal": 3
},
"components": [
{
"id": "img_{count}",
"type": "Image",
"properties": {
"Width": 128,
"Height": 180,
"Picture": "{image}"
}
}
]
},
{
"id": "nome_{count}",
"type": "Label",
"properties": {
"Width": 108,
"Text": "{nome}",
"TextColor": -1,
"FrontTypefaceImport": "Montserrat Regular.ttf",
"Marquee": true,
"FontBold": true
}
}
]
}
]
}
correct block it that
You’ve helped me a lot, my friend, thank you very much.
@sherbakovyt2
In my schema data also correct, i fix some name (which i think, it may incorrect), like - ContentPaddingButtom
to ContentPaddingBottom
, FrontTypefaceImport
to FontTypefaceImport
& more.
and using extension it, U also achieve it.
i am happy to hear, Your problem is fix.
(post deleted)/…