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

error: RuntimeError: indirect call type mismatch #7

Open
agardnerIT opened this issue Jul 21, 2024 · 1 comment
Open

error: RuntimeError: indirect call type mismatch #7

agardnerIT opened this issue Jul 21, 2024 · 1 comment

Comments

@agardnerIT
Copy link

agardnerIT commented Jul 21, 2024

Describe the bug

The most basic Python + requests program errors.

import requests

def send_request():
    resp = requests.get(
        url="https:/example.com"
    )
    print(resp.status_code)

if __name__ == "__main__":
    send_request()
% wasmer run app.wasm
error: RuntimeError: indirect call type mismatch
╰─▶ 1: RuntimeError: indirect call type mismatch

requirements.txt

py2wasm==2.6.3
requests==2.32.3
wasmer==1.1.0

wasmer version

% wasmer --version 
wasmer 4.3.5
  • MacBook Air M2 apple silicon. Sonoma 14.5
  • Python 3.11.4
  • wasmer 4.3.5
@maminrayej
Copy link

py2wasm currently uses WASI which does not have sockets enabled and that causes requests fail. We should move py2wasm to use WASIX instead and that should solve the issue.

@syrusakbary syrusakbary transferred this issue from wasmerio/wasmer Jul 25, 2024
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