ATProtoKit icon indicating copy to clipboard operation
ATProtoKit copied to clipboard

[Bug]: describeFeedGenerator produce not valid JSON

Open valvoline opened this issue 2 years ago • 3 comments

Summary

describeFeedGenerator produce not valid JSON

Reproduction Steps

        do {
            let feedDescription = try await atProto.describeFeedGenerator()
            print(feedDescription)
        } catch {
            print(error)
        }

Expected Results

Description of feed generator

Actual Results

dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character '<' around line 1, column 1." UserInfo={NSDebugDescription=Unexpected character '<' around line 1, column 1., NSJSONSerializationErrorIndex=0})))

What operating systems did you experience this bug? (We'll count Docker as an operating system.)

macOS

Operating System Version

14.6.1 (23G93)

ATProtoKit Version

0.19.2

Additional Context

No response

valvoline avatar Nov 18 '24 16:11 valvoline

Sorry about that; I'm unsure how I didn't see this issue until now.

I'll look at it in the morning, but at a quick glance, I may have made a mistake in the applicable struct. I'll look into what it is. It won't be available in time for version 0.20.0, though (probably a 0.20.1 update, however).

MasterJ93 avatar Nov 19 '24 10:11 MasterJ93

Sorry for the long wait: there are so many bugs that I need to fix with this project.

The develop branch should have a for this now. Please let me know if you're still experiencing any issues with that.

MasterJ93 avatar Nov 22 '24 11:11 MasterJ93

It looks like the issue is no longer here. I'll be closing the issue now, but re-open it if the issue persists.

MasterJ93 avatar Nov 26 '24 01:11 MasterJ93