Abhishekmishra2808 commented on code in PR #61588:
URL: https://github.com/apache/airflow/pull/61588#discussion_r2894246733


##########
airflow-core/src/airflow/ui/src/queries/useDagParsing.ts:
##########
@@ -30,7 +30,16 @@ export const useDagParsing = ({ dagId }: { readonly dagId: 
string }) => {
   const queryClient = useQueryClient();
   const { t: translate } = useTranslation("dag");
 
-  const onError = () => {
+  const onError = (error: unknown) => {
+    // Get status from error
+    const status =
+      (error as { status?: number }).status ?? (error as { response?: { 
status?: number } }).response?.status;
+
+    // Skip 403 errors as they are handled by MutationCache

Review Comment:
   Yes, I have addressed in the latest commit!
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to