Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Can't fetch from local Flask server #5

Open
ReinforcedKnowledge opened this issue May 17, 2024 · 3 comments
Open

Can't fetch from local Flask server #5

ReinforcedKnowledge opened this issue May 17, 2024 · 3 comments

Comments

@ReinforcedKnowledge
Copy link

Hi!

Thanks a lot for the work that you have done on this project. I tried to run your repo to get a feeling of how this works but it seems Office still can't connect to the connect to the Flask server running on https://localhost:5000.

I have verified the certificates generated by mkcert using curl and reading them with openssl and my browser does show that the https://localhost:5000 is secure. But, I can't seem to fetch anything from it using the Office.js API. I even ran it inside the Script Lab API and any request to the localhost doesn't go through.

I was wondering if you had any information regarding this issue.

Below are the information regarding my environment:

Ubuntu 23.10
Python 3.11.6
Libraries are installed from your requirements file
Browser: Brave 1.65.133 Chromium: 124.0.6367.208 (Official Build) (64-bit)

Thank you!

@fzumstein
Copy link
Member

Does it have to be flask? I am in process of building an out-of-the box "official" xlwings Server: https://github.com/xlwings/xlwings-server maybe you want to give it a try? It's even setup to run on GitHub codespaces

@ReinforcedKnowledge
Copy link
Author

ReinforcedKnowledge commented May 17, 2024

No it doesn't have to be Flask. As long as I have a Python backend it's good! I just went with Flask because I'm familiar with it. Do you think this issue might be tied to some specifics of Flask? I can try the others, or even use Nginx as a reverse proxy. I'll do that and come back to you. This might be of help to others 😄

I'll check out the link xlwings server as well, thank you!

@fzumstein
Copy link
Member

fzumstein commented May 17, 2024

I mean, it’ll work with all the web frameworks, but it’s easiest for me to support an official implementation. So let me know if you can’t get xlwings-server to run.

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

No branches or pull requests

2 participants