Skip to content

Error: Unknown protocol message type 1 at position 10 #235

@nikeshkedlaya

Description

@nikeshkedlaya
  1. What versions are you using?
    1.4.1
  1. Is it an error or a hang or a crash?
    Error

  2. What error(s) or behavior you are seeing?
    Getting below error while calling the procedure but it is intermittent.

`File "/opt/app/app/orm_dto/tenancy_report_orm.py", line 68, in fetch_all_clients_backup_report
    cursor_obj.callproc("package_name.procedure_name", [
  File "/home/python/.local/lib/python3.9/site-packages/oracledb/cursor.py", line 285, in callproc
    self._call(name, parameters, keyword_parameters)
  File "/home/python/.local/lib/python3.9/site-packages/oracledb/cursor.py", line 118, in _call
    self.execute(statement, bind_values)
  File "/home/python/.local/lib/python3.9/site-packages/oracledb/cursor.py", line 383, in execute
    impl.execute(self)
  File "src/oracledb/impl/thin/cursor.pyx", line 132, in oracledb.thin_impl.ThinCursorImpl.execute
  File "src/oracledb/impl/thin/protocol.pyx", line 420, in oracledb.thin_impl.Protocol._process_single_message
  File "src/oracledb/impl/thin/protocol.pyx", line 421, in oracledb.thin_impl.Protocol._process_single_message
  File "src/oracledb/impl/thin/protocol.pyx", line 381, in oracledb.thin_impl.Protocol._process_message
  File "src/oracledb/impl/thin/protocol.pyx", line 360, in oracledb.thin_impl.Protocol._process_message
  File "src/oracledb/impl/thin/messages.pyx", line 292, in oracledb.thin_impl.Message.process
  File "src/oracledb/impl/thin/messages.pyx", line 848, in oracledb.thin_impl.MessageWithData._process_message
  File "src/oracledb/impl/thin/messages.pyx", line 180, in oracledb.thin_impl.Message._process_message
  File "/home/python/.local/lib/python3.9/site-packages/oracledb/errors.py", line 127, in _raise_err
    raise exc_type(_Error(message)) from cause
oracledb.exceptions.InternalError: DPY-5000: internal error: unknown protocol message type 1 at position 10`
  1. Does your application call init_oracle_client()?
    No
  1. Include a runnable Python script that shows the problem.
 with connection.cursor() as cursor_obj:
            error_code = cursor_obj.var(int)
            error_msg = cursor_obj.var(str)
            i_Service_Param = json.dumps(in_json)
            out_param = cursor_obj.var(oracledb.DB_TYPE_CLOB, arraysize=cursor_obj.arraysize)
            cursor_obj.callproc("pacakge_name.procedeure_name", [
                                user_email, i_Service_Param, out_param, error_code, error_msg])

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions