getting Status code: 301 Moved Permanently error

narendra11
New Contributor

getting this error while running the cells 

Failed to upload command result to DBFS. Error message: Status code: 301 Moved Permanently, Error message: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>PermanentRedirect</Code><Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message><Endpoint>command-results.s3.amazonaws.com</Endpoint><Bucket>command-results</Bucket><RequestId>C10PHW22ATF70H79</RequestId><HostId>5UUKRCZCV6nCW15Tg74mXlN8ChwSalJAHmb3C0QjoTerIaU4GcnutjaSZgwmIv9LfyTvtr3pjYk=</HostId></Error>


and also am not able to access the dbfs root folder getting this error


DBFS file browser
StorageContext com.databricks.backend.storage.StorageContextType$DbfsRoot$@43afb7c4 for workspace 693451128625471 is not set in the CustomerStorageInfo.
 
 

Yyyyy
New Contributor III

same issue i am also getting does someone knows about it 

MJ_BE8
Databricks Partner

I got this error when I wrote too many display() dataframe lines in the same notebook cell. Having only less than four display() solved the error for me.

stefano0929
New Contributor II

Same problem and I don't know how to solve.. Here an example of cell that has always worked correctly but from yesterday it stopped.

# Compute the correlation matrix
correlation_matrix = data.corr()

# Set up the matplotlib figure
plt.figure(figsize=(14, 10))

# Draw the heatmap with the mask and correct aspect ratio
sns.heatmap(correlation_matrix, annot=True, fmt=".2f", cmap='coolwarm', 
            cbar_kws={"shrink": .8}, linewidths=0.5, linecolor='black')

# Add a title
plt.title('Correlation Matrix', fontsize=16)

# Adjust the font size for better readability
plt.xticks(fontsize=12, rotation=45, ha='right')
plt.yticks(fontsize=12)

# Show the plot
plt.show()

 

Daigona
New Contributor III

I had the same issue. Thanks to you, my project works now.

View solution in original post