snapcraft export-login and login command error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapcraft (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying to use the snapcraft export-login and login command, but I am encountering an error. After exporting my snapcraft credentials using the following command:
snapcraft export-login snaplogin
I try to login with the following command:
snapcraft login --with snaplogin
But I receive the following error message:
Cannot parse config: File contains no section headers.
I have tried checking the format of the file and the contents, but the issue still persists. I would greatly appreciate any help or advice on how to resolve this error.
Thank you in advance for your time and support.
snapcraft version: snapcraft 7.2.9
snapcraft log:
2023-02-11 23:53:15.585 Traceback (most recent call last):
2023-02-11 23:53:15.585 File "/snap/
2023-02-11 23:53:15.585 parser.
2023-02-11 23:53:15.585 File "/snap/
2023-02-11 23:53:15.585 self.read_
2023-02-11 23:53:15.585 File "/snap/
2023-02-11 23:53:15.585 self._read(f, source)
2023-02-11 23:53:15.585 File "/snap/
2023-02-11 23:53:15.585 raise MissingSectionH
2023-02-11 23:53:15.585 configparser.