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

research_template.html is missing #1

Open
PhilipNZ opened this issue Oct 29, 2024 · 1 comment
Open

research_template.html is missing #1

PhilipNZ opened this issue Oct 29, 2024 · 1 comment

Comments

@PhilipNZ
Copy link

Thanks a lot for sharing your ideas and code on building agentic systems. However, when I run in newsletter-cron, I got

/newsletter-cron$ python3 main.py

Traceback (most recent call last):
File "/git_repositories/InformationBottleneck/ib/lib/python3.12/site-packages/storage3/_sync/file_api.py", line 47, in _request
response.raise_for_status()
File "/git_repositories/InformationBottleneck/ib/lib/python3.12/site-packages/httpx/_models.py", line 761, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://xxkshbekwgsblghfahda.supabase.co/storage/v1/object/test/research_template.html'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/git_repositories/langgraph-cookbook/apps/newsletter-cron/main.py", line 7, in
from graph import graph
File "/git_repositories/langgraph-cookbook/apps/newsletter-cron/graph.py", line 5, in
from tools import load_html_template, EmailSender, search, get_contents, find_similar
File "/git_repositories/langgraph-cookbook/tools/init.py", line 1, in
from .html_loader import load_html_template
File "/git_repositories/langgraph-cookbook/tools/html_loader.py", line 12, in
html_template = read_file(
^^^^^^^^^^
File "/git_repositories/langgraph-cookbook/utils/file_utils.py", line 16, in read_file
res = supabase.storage.from_(bucket_name).download(file_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/git_repositories/InformationBottleneck/ib/lib/python3.12/site-packages/storage3/_sync/file_api.py", line 342, in download
response = self._request(
^^^^^^^^^^^^^^
File "/git_repositories/InformationBottleneck/ib/lib/python3.12/site-packages/storage3/_sync/file_api.py", line 51, in _request
raise StorageException({**resp, "statusCode": response.status_code})
storage3.utils.StorageException: {'statusCode': 400, 'error': 'not_found', 'message': 'Object not found'}

It looks like research_template.html is missing. I can find only newsletter_template.html in folder ./config/. Do you mind sharing research_template.html ?

Thanks a lot!

@Saidiibrahim
Copy link
Owner

Saidiibrahim commented Oct 30, 2024

Hi Phillip. I've added the missing research template to the config directory.

You're welcome to submit changes to the repo 🙏🏾

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

2 participants