Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTTP 404 error with Session Pool
#1
Greetings,

The connection works with just a single user connection, but I get a HTTP 404 error, when creating a Session Pool connection??

I used this cx_Oracle example:
https://cx-oracle.readthedocs.io/en/late...tion-state

Any suggestions or pointers, would be appreciated.


The code is:

def service_response():
    responsepool = cx_Oracle.SessionPool(user="user", password="password", dsn="server/dbt", min=2, max=5, increment=1, encoding="UTF-8")
    connection = responsepool.acquire()
    cursor = connection.cursor()
    for responsesql in cursor.execute("SELECT * FROM table"):
        responsedata = list(cursor.execute(text(responsesql)))
        print(responsedata)

    responsepool.release(connection)
    responsepool.close()

    return render_template('/index.html', service_response= responsedata)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  error HTTP Error 403: Forbidden local_bit 1 912 Nov-14-2020, 11:34 AM
Last Post: ndc85430
  urllib.error.HTTPError: HTTP Error 404: Not Found ckkkkk 4 3,538 Mar-03-2020, 11:30 AM
Last Post: snippsat
  python beginner HTTP Error 500 leofcastro 0 705 Jan-24-2020, 04:37 PM
Last Post: leofcastro
  HTTP error 404 Karin 4 2,526 May-31-2019, 02:23 PM
Last Post: snippsat
  How to check HTTP error 500 and bypass SriMekala 3 2,005 May-04-2019, 02:07 PM
Last Post: snippsat
  Syntax error for HTTP request GET THX1138 1 4,334 May-12-2018, 12:02 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020