ReadYouApp / ReadYouApp/ReadYou

Unable to import

Open
#1,117 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug untriaged
Dominant language
Kotlin
Stars
7.5k
Forks
330
PR merge metrics
No merged PRs in 30d

Description

Checklist
  • I've already searched in existing issues and haven't found a similar problem reported.
  • I'm using the latest version of the app
  • This error caused the app to crash
  • This error is reproducible
Which category best fits this error?

Feed Management

App version

0.14.4

Reproduction steps
1. Import opml file (attached, can not upload .opml here, so renamed it to .txt)

[Science.txt](https://github.com/user-attachments/files/21475749/Science.txt)

)
2. Get the error:
Version: 0.14.4
Device: Xiaomi Redmi Note 6 Pro
System: Android 15 (API 35)

Stack trace: 

.ceau.opml.OpmlParseException: encountered non-namespaced element <url> instead of <head>
	at be.ceau.opml.OpmlHeadHandler.startTag(OpmlHeadHandler.java:286)
	at be.ceau.opml.OpmlParser.extract(OpmlParser.java:161)
	at me.ash.reader.infrastructure.rss.OPMLDataSource.parseFileInputStream(OPMLDataSource.kt:16)
	at me.ash.reader.domain.service.OpmlService$saveToDatabase$2.invokeSuspend(OpmlService.kt:246)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:115)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:4)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:96)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@2d4479b, Dispatchers.Default]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the attached Science.txt and the import path in OPMLDataSource.kt, especially parseFileInputStream, then reproduce the import on the reported app version and inspect the OpmlParseException. Use OpmlService.kt at saveToDatabase as the next entry point. Done means the supplied OPML file can be imported without the reported parsing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.