How to Import bundles

Hello guys, Newi here.
Just deployed the hapi-fhir container. It launches fine with no errors.
I then generated some synthea data and trying to use the python to import all of them
import json
import os
import requests

URL = “http://localhost:8080/fhir

headers = {“Content-Type”: “application/fhir+json;charset=utf-8”}
for dirpath, dirnames, files in os.walk(’/Users/sbe/Documents/GitHub/synthea/output/fhir’):

  • for file_name in files:*

  •    with open('/Users/sbe/Documents/GitHub/synthea/output/fhir/'+file_name, "r") as bundle_file:*
    
  •            data = bundle_file.read()*
    
  •            print(data)  *
    
  •    r = requests.post(url = URL, data = data, headers = headers)*
    
  •    #output file name that was processed*
    
  •    print(file_name)*
    

Pythion runs and displays every file being processed but when I search in fhir server there is nothing
(Search for bundle id, family, given…)
What am I doing wrong?
Is there a better way to import 100+ bundles?

Maybe try in the Zulip hapi stream at Zulip