Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph connexion broken #592

Closed
davidande opened this issue Feb 5, 2025 · 1 comment
Closed

Graph connexion broken #592

davidande opened this issue Feb 5, 2025 · 1 comment

Comments

@davidande
Copy link

hello,

from this morning, parsedmarc do not seems to connect anymore to my Graph API
abc@webtop:~$ parsedmarc -c /etc/parsedmarc.ini --debug INFO:cli.py:1201:Starting parsedmarc 0it [00:00, ?it/s] ERROR:cli.py:1561:Mailbox Error Traceback (most recent call last): File "/config/.local/lib/python3.12/site-packages/parsedmarc/cli.py", line 1539, in _main reports = get_dmarc_reports_from_mailbox( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/.local/lib/python3.12/site-packages/parsedmarc/__init__.py", line 1574, in get_dmarc_reports_from_mailbox connection.create_folder(archive_folder) File "/config/.local/lib/python3.12/site-packages/parsedmarc/mail/graph.py", line 142, in create_folder resp = self._client.post(request_url, json=request_body) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/.local/lib/python3.12/site-packages/msgraph/core/_graph_client.py", line 122, in post return self.graph_session.post(self._graph_url(url), data=data, json=json, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/.local/lib/python3.12/site-packages/requests/sessions.py", line 637, in post return self.request("POST", url, data=data, json=json, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/.local/lib/python3.12/site-packages/requests/sessions.py", line 575, in request prep = self.prepare_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/.local/lib/python3.12/site-packages/requests/sessions.py", line 486, in prepare_request p.prepare( File "/config/.local/lib/python3.12/site-packages/requests/models.py", line 368, in prepare self.prepare_url(url, params) File "/config/.local/lib/python3.12/site-packages/requests/models.py", line 439, in prepare_url raise MissingSchema( requests.exceptions.MissingSchema: Invalid URL 'graph.microsoft.com/v1.0/users/[email protected]/mailFolders': No scheme supplied. Perhaps you meant https://graph.microsoft.com/v1.0/users/[email protected]/mailFolders? 0it [00:00, ?it/s] abc@webtop:~$

I feel not very confortable with graph API but it was working fine since this morning
any idea?

thanks

@davidande
Copy link
Author

Hey, I resolve this adding graph_url = https://https://graph.microsoft.com under msgraph section. For me it was supposed to be the default value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant