Skip to content

gmi push raises an error "Invalid label name" #109

Description

@eunchan

After initial pull works, sync or push failed with below error.

Looks like it tries to creat archive label ? It is reserved label so that it may fail.
Is there any way to solve this?

push: creating label: archive..
Traceback (most recent call last):
  File "/Users/eunchan/homebrew/bin/gmi", line 4, in <module>
    __import__('pkg_resources').run_script('lieer==0.10', 'gmi')
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1460, in run_script
    exec(script_code, namespace, namespace)
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/lieer-0.10-py3.7.egg/EGG-INFO/scripts/gmi", line 8, in <module>
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/lieer-0.10-py3.7.egg/lieer/gmailieer.py", line 155, in main
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/lieer-0.10-py3.7.egg/lieer/gmailieer.py", line 274, in push
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/lieer-0.10-py3.7.egg/lieer/remote.py", line 116, in func_wrap
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/lieer-0.10-py3.7.egg/lieer/remote.py", line 536, in update
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/lieer-0.10-py3.7.egg/lieer/remote.py", line 116, in func_wrap
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/lieer-0.10-py3.7.egg/lieer/remote.py", line 552, in __push_tags__
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/lieer-0.10-py3.7.egg/lieer/remote.py", line 116, in func_wrap
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/lieer-0.10-py3.7.egg/lieer/remote.py", line 669, in __create_label__
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/google_api_python_client-1.7.9-py3.7.egg/googleapiclient/_helpers.py", line 130, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/Users/eunchan/homebrew/lib/python3.7/site-packages/google_api_python_client-1.7.9-py3.7.egg/googleapiclient/http.py", line 851, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/gmail/v1/users/me%40eunchan.kim/labels?alt=json returned "Invalid label name">
resolving changes:   3%|███▏                                                                                                          | 18/618 [00:00<00:10, 56.49it/s]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions