Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidFormatException is thrown when a malformed link is present in an RSS feed #5

Closed
Kolomona opened this issue May 30, 2024 · 2 comments

Comments

@Kolomona
Copy link
Contributor

When running the test getPodcastsByMedium_shouldReturnMatchedPodcast()

I'm getting the following error. I believe this is due to no "http://" or "https://" in the beginning of the link "www.aikihomestead.ca"

The offending podcast is at https://podcastindex.org/podcast/6786261

com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type java.net.URL from String "www.aikihomestead.ca": not a valid textual representation, problem: no protocol: www.aikihomestead.ca

I'll try to track down a solution but I'm not very familiar with com.fasterxml.jackson

There should be a way to assume a protocol such as http or https.

@yusufyilmazfr
Copy link
Owner

Hello @Kolomona, I've changed URL data type to string because of we don't have to deal with podcastindex API response consistency so we'll never take a exception about malformed link. And I've added some deserialization settings in project. I don't expect any unknown field exception.

yusufyilmazfr added a commit that referenced this issue May 31, 2024
InvalidFormatException is thrown when a malformed link is present in an RSS feed #5
@yusufyilmazfr
Copy link
Owner

These problems are fixed! New client is available on central repositories. 🎧

<dependencies>
    <dependency>
        <groupId>io.github.yusufyilmazfr</groupId>
        <artifactId>podcast4j</artifactId>
        <version>1.0.2</version>
    </dependency>
</dependencies>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants