qnikst / qnikst/HaskellNet

Can't parse information from gmail error block

Open
#107 1 comment 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.