Can't parse information from gmail error block
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 92
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
Hello
I'm trying to fetch mail from gmail.
I use authenticate conn XOAUTH2 username password with e.g. missing the word Bearer.
then receive
*** Exception: 000000:1:1: expecting either "* " or "000000"
HasCallStack backtrace:
error, called at src/Network/HaskellNet/IMAP/Parsers.hs:30:38 in HaskellNet-0.6.1.2-a60218bf0feacdb5d2180453e4a48f830a8a7c474ae24603c13eb62ec160146a:Network.HaskellNet.IMAP.Parsers
I presume this is a gmail error, but can't tell what's going on. Presumably this should parse either way.
What can I do here?
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/Network/HaskellNet/IMAP/Parsers.hs:30, where the reported parse error occurs, and inspect how IMAP error blocks are parsed. Reproduce the XOAUTH2 request with the missing Bearer word and compare the Gmail response with the parser's expected forms; done means the response is handled without this parse failure or the limitation is clearly reported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100