<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: New error: middleware.base:exception while intercepting server message in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/108261#M43010</link>
    <description>&lt;P&gt;It is failing with&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;IndentationError: unexpected indent&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;The error message points to the line containing &lt;CODE&gt;'netsuite_internal_id'&lt;/CODE&gt;. Kindly locate this line in your code.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Feb 2025 06:38:04 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2025-02-01T06:38:04Z</dc:date>
    <item>
      <title>New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/106924#M42644</link>
      <description>&lt;P&gt;We started getting a very weird error at random from Databricks. This is from cells that routinely work, and after it happens once it will happen on every cell. It appears to be including full text of a .py file we're importing, that I've had to remove here.&lt;BR /&gt;&lt;BR /&gt;This is the output from a Python cell with nothing but print(1) in it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1
ERROR:dbruntime.lsp_backend.middleware.base:exception while intercepting server message: {'jsonrpc': '2.0', 'method': 'textDocument/didOpen', 'params': {'cellRanges': [{'startLine': 0, 'stopLine': 12, 'commandId': 2987329298861966}, {'startLine': 12, 'stopLine': 26, 'commandId': 7910971740075064}, {'startLine': 26, 'stopLine': 36, 'commandId': 2987329298861968}, {'startLine': 36, 'stopLine': 74, 'commandId': 2987329298861969}, {'startLine': 74, 'stopLine': 90, 'commandId': 2987329298861970}, {'startLine': 90, 'stopLine': 95, 'commandId': 2987329298861971}, {'startLine': 95, 'stopLine': 97, 'commandId': 7910971740075065}, {'startLine': 97, 'stopLine': 99, 'commandId': 2987329298861972}, {'startLine': 99, 'stopLine': 107, 'commandId': 2987329298861973}, {'startLine': 107, 'stopLine': 111, 'commandId': 7910971740075063}, {'startLine': 111, 'stopLine': 113, 'commandId': 2987329298861974}, {'startLine': 113, 'stopLine': 114, 'commandId': 2987329298861975}, {'startLine': 114, 'stopLine': 115, 'commandId': 2987329298861976}, {'startLine': 115, 'stopLine': 122, 'commandId': 2987329298861977}, {'startLine': 122, 'stopLine': 129, 'commandId': 2987329298861978}, {'startLine': 129, 'stopLine': 131, 'commandId': 2987329298861979}, {'startLine': 131, 'stopLine': 134, 'commandId': 2987329298861980}, {'startLine': 134, 'stopLine': 155, 'commandId': 2987329298861981}, {'startLine': 155, 'stopLine': 156, 'commandId': 2987329298861982}, {'startLine': 156, 'stopLine': 157, 'commandId': 2987329298861983}, {'startLine': 157, 'stopLine': 158, 'commandId': 2987329298861984}], 'cursorPosition': {'line': 95, 'character': 0}, 'textDocument': {'uri': '/notebook/e0152433-fae9-421b-955e-55303a1ff30b/2987329298861965', 
Traceback (most recent call last):
  File "/databricks/python_shell/dbruntime/lsp_backend/middleware/base.py", line 54, in intercept_message_to_server_safe
    return self.intercept_message_to_server(msg)
  File "/databricks/python_shell/dbruntime/lsp_backend/middleware/pyspark_select_diagnostics.py", line 34, in intercept_message_to_server
    diagnostics += lint(self.parse(cell), getattr(self.shell, "user_ns", None), start)
  File "/databricks/python_shell/dbruntime/lsp_backend/pyspark_select_diagnostics_utils.py", line 174, in lint
    diagnostics += make_diagnostics(select_string_arg_nodes, df_name, list(spark_df.columns),
  File "/databricks/python_shell/dbruntime/lsp_backend/pyspark_select_diagnostics_utils.py", line 128, in make_diagnostics
    select_arg_node_value = eval(select_arg_node.get_code())
  File "&amp;lt;string&amp;gt;", line 2
    'netsuite_internal_id'
IndentationError: unexpected indent&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our current suspect is the newer GCE clusters on GCP. Was wondering if anyone else has run into anything like this before.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 15:59:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/106924#M42644</guid>
      <dc:creator>Kayla</dc:creator>
      <dc:date>2025-01-24T15:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/106931#M42646</link>
      <description>&lt;P&gt;Tried with other cluster configurations, GCE / GKE, doesn't seem to matter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 16:34:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/106931#M42646</guid>
      <dc:creator>Kayla</dc:creator>
      <dc:date>2025-01-24T16:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107013#M42675</link>
      <description>&lt;P&gt;Similar error here. also started this morning&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last): File "/databricks/python_shell/dbruntime/lsp_backend/middleware/base.py", line 54, in intercept_message_to_server_safe return self.intercept_message_to_server(msg) File "/databricks/python_shell/dbruntime/lsp_backend/middleware/pyspark_select_diagnostics.py", line 34, in intercept_message_to_server diagnostics += lint(self.parse(cell), getattr(self.shell, "user_ns", None), start) File "/databricks/python_shell/dbruntime/lsp_backend/pyspark_select_diagnostics_utils.py", line 174, in lint diagnostics += make_diagnostics(select_string_arg_nodes, df_name, list(spark_df.columns), File "/databricks/python_shell/dbruntime/lsp_backend/pyspark_select_diagnostics_utils.py", line 128, in make_diagnostics select_arg_node_value = eval(select_arg_node.get_code()) File "&amp;lt;string&amp;gt;", line 2 'channel_order_number' IndentationError: unexpected indent&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 14:43:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107013#M42675</guid>
      <dc:creator>ElNino</dc:creator>
      <dc:date>2025-01-25T14:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107171#M42721</link>
      <description>&lt;P&gt;Similar error for me&amp;nbsp;&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;ERROR:dbruntime.lsp_backend.middleware.base:exception while intercepting server message: {'jsonrpc': '2.0', 'method': 'textDocument/didOpen', 'params': {'cellRanges': [{'startLine': 0, 'stopLine': 6, 'commandId': 5146433554673168}, {'startLine': 6, 'stopLine': 8, 'commandId': 5146433554673169}, {'startLine': 8, 'stopLine': 62, 'commandId': 5146433554673170}, {'startLine': 62, 'stopLine': 64, 'commandId': 5146433554673171}, {'startLine': 64, 'stopLine': 79, 'commandId': 5146433554673172}, {'startLine': 79, 'stopLine': 90, 'commandId': 5146433554673173},&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/databricks/python_shell/lib/dbruntime/lsp_backend/middleware/base.py", line 54, in intercept_message_to_server_safe&lt;BR /&gt;return self.intercept_message_to_server(msg)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/databricks/python_shell/lib/dbruntime/lsp_backend/middleware/pyspark_select_diagnostics.py", line 34, in intercept_message_to_server&lt;BR /&gt;diagnostics += lint(self.parse(cell), getattr(self.shell, "user_ns", None), start)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/databricks/python_shell/lib/dbruntime/lsp_backend/pyspark_select_diagnostics_utils.py", line 170, in lint&lt;BR /&gt;df_name = get_dataframe_name(node)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/databricks/python_shell/lib/dbruntime/lsp_backend/pyspark_select_diagnostics_utils.py", line 98, in get_dataframe_name&lt;BR /&gt;return node.children[0].value # type: ignore [attr-defined]&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;AttributeError: 'PythonNode' object has no attribute 'value'&lt;BR /&gt;```&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 09:13:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107171#M42721</guid>
      <dc:creator>arun-surendran</dc:creator>
      <dc:date>2025-01-27T09:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107179#M42722</link>
      <description>&lt;P&gt;Starting this morning we also face the same problem:&lt;BR /&gt;To resolve it we downgraded the cluster's DBR from 15.4 to 14.3. And everything worked for a while. After an hour the problem occured again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 09:53:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107179#M42722</guid>
      <dc:creator>GeoPer</dc:creator>
      <dc:date>2025-01-27T09:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107193#M42725</link>
      <description>&lt;P&gt;Furthermore, after this error, if you try to format (CTRL+SHIFT+F) any cell, even if it only contains a simple command like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;print("something")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;, it shows the following message:&lt;/P&gt;&lt;P&gt;Format cell failed&lt;BR /&gt;Python indentation error(s) exist in the cell. Please fix the error(s) before formatting&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 10:07:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107193#M42725</guid>
      <dc:creator>GeoPer</dc:creator>
      <dc:date>2025-01-27T10:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107247#M42743</link>
      <description>&lt;P&gt;Same story here with 15.4 LTS.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 14:00:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107247#M42743</guid>
      <dc:creator>bue</dc:creator>
      <dc:date>2025-01-27T14:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107267#M42750</link>
      <description>&lt;P&gt;Getting Same issue with Runtime 16.1.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 16:36:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107267#M42750</guid>
      <dc:creator>AnshulJain</dc:creator>
      <dc:date>2025-01-27T16:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107382#M42790</link>
      <description>&lt;P&gt;Hey everybody - sorry that you experienced these issues. We identified the issue and reverted the feature causing it. Things should be back to normal already.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 09:59:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107382#M42790</guid>
      <dc:creator>TKr</dc:creator>
      <dc:date>2025-01-28T09:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107394#M42798</link>
      <description>&lt;P&gt;For 16.0 cluster issue still arises&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 12:46:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107394#M42798</guid>
      <dc:creator>berti99</dc:creator>
      <dc:date>2025-01-28T12:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107399#M42799</link>
      <description>&lt;P&gt;The issue should be a frontend only issue. Can you hard refresh your browser page and let me know if that doesn't help?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 13:32:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107399#M42799</guid>
      <dc:creator>TKr</dc:creator>
      <dc:date>2025-01-28T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107408#M42800</link>
      <description>&lt;P&gt;Refresh didnt help. I restarted cluster and now it works&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 13:46:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107408#M42800</guid>
      <dc:creator>berti99</dc:creator>
      <dc:date>2025-01-28T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107581#M42844</link>
      <description>&lt;P&gt;I'm curious. Can anyone let me now if you used code like this in your notebook?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import logging
logger = logging.getLogger(__name__)
logger.info("...")&lt;/LI-CODE&gt;&lt;P&gt;This helps me understand the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be even better if you could share the code in the notebook, but only if it doesn't contain PII.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 12:59:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/107581#M42844</guid>
      <dc:creator>TKr</dc:creator>
      <dc:date>2025-01-29T12:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/108261#M43010</link>
      <description>&lt;P&gt;It is failing with&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;IndentationError: unexpected indent&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;The error message points to the line containing &lt;CODE&gt;'netsuite_internal_id'&lt;/CODE&gt;. Kindly locate this line in your code.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 06:38:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/108261#M43010</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-02-01T06:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: New error: middleware.base:exception while intercepting server message</title>
      <link>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/108807#M43149</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/146424"&gt;@TKr&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Hey everybody - sorry that you experienced these issues. We identified the issue and reverted the feature causing it. Things should be back to normal already.&lt;/STRONG&gt;&lt;BR /&gt;I'm glad to hear that. Are you a Databricks employee?&lt;BR /&gt;Referring to your question, we didn't use any loggers at all or use __name__ in our scripts.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23233"&gt;@NandiniN&lt;/a&gt;&amp;nbsp;If you follow the stack trace, you'll notice it's pointing to that inside the file "/databricks/python_shell/dbruntime/lsp_backend/pyspark_select_diagnostics_utils.py" which I've cat-ed and that line is completely not in there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 15:21:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-error-middleware-base-exception-while-intercepting-server/m-p/108807#M43149</guid>
      <dc:creator>Kayla</dc:creator>
      <dc:date>2025-02-04T15:21:35Z</dc:date>
    </item>
  </channel>
</rss>

