Server error with python moralis

Local host it works fine but in server

HTTPSConnectionPool(host=‘deep-index.moralis.io’, port=443): Max retries exceeded with url: /api/v2/0x8783832B3568FC52C5689c06f1350a294EDB4cDa/events?chain=mumbai&topic=ChangeOwnership%28uint256%2Caddress%2Caddress%29&disable_total=true (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7fc722ca73a0>: Failed to establish a new connection: [Errno 101] Network is unreachable’))

from django.shortcuts import render
# Create your views here.
from moralis import evm_api
from rest_framework.decorators import api_view
import json
from rest_framework.response import Response

@api_view(['GET'])
def Sales(requst):
    body = {
    "anonymous": False,
    "inputs": [
      {
        "indexed": False,
        "internalType": "uint256",
        "name": "itemId",
        "type": "uint256"
      },
      {
        "indexed": False,
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      },
      {
        "indexed": False,
        "internalType": "address",
        "name": "oldOwner",
        "type": "address"
      }
    ],
    "name": "ChangeOwnership",
    "type": "event"
  }


    api_key = "ap_key"
    params = {
        "address": "0x8783832B3568FC52C5689c06f1350a294EDB4cDa", 
        "topic": "ChangeOwnership(uint256,address,address)", 
        "chain": "mumbai", 
        "disable_total": True, 
    }
    # topic = "ChangeOwnership(uint256, address, address)"
    result = evm_api.events.get_contract_events(
        api_key=api_key,
        params=params,
        body=body,
        )
    return Response(result)

code for request in my react app is giving left hand side error
so I decided to use Django passing data through API because I already was using Django so ya
that response in localhost

that link for api
https://tehmasipsen0900.pythonanywhere.com/event/sales/

can you try to run directly on the server a simple python script that makes that request to see if it works?

it should work without issues

it looks like something on that server is blocking that connection to

ok man thank you
shukran habibi :heart_eyes: :sweat_smile: