Closed swaglordmcmuffin closed 1 year ago
@swaglordmcmuffin looks like you came up with a solution?
@toini Hi, yes. I did something with something, and all of a sudden I got it to work. I just need to figure out the root cause and potential solution and I'll update this with any finding.
I closed it to prevent you from unecessary debugging in the meantime :)
I might have misunderstood something here, but the
SubscriptionPriceConnectionQueryBuilder.WithRange()
fails to convert the date to the required BASE64 string.By submitting the required DateTimeOffset object the Tibber API responds with error
"\"after\" must be a valid cursor instance"
.Example code:
From what I can see when viewing the query variable above the date is a plain string instead of the BASE64 conversion:
"query{viewer{home(id:\"xxxx-xxxx-xxxx-xxxx\"){currentSubscription{priceInfo{range(resolution:HOURLY,last:1000,after:\"2023-01-01T00:00:00.0000000+01:00\"){nodes{total,energy,tax,startsAt,currency,level}}}}}}}"
Am I missing something here or is this an error in the Tibber SDK?
Best regards, Linus