前言
當我們要為某段程式碼設定執行錯誤時,讓它 Retry 可以很簡單的建立一個 Retry 的擴充方法來達到,如下,
Hello! 我是 RM
透過 Azure Function 的 Queue trigger Function 來取得資料(JSON 字串)時,
在 Queue 中的資料都還沒有被 Function 處理,
Console 就 Log 出 Message has reached MaxDequeueCount of 5. Moving message to queue {myQueueName}-poison ,
然後 Queue 中的內容就搬到了 {myQueueName}-poison 去了。
如果在 Azure Function 的 Application Insights 看到的錯誤有可能是 System.Text.DecoderFallbackException at System.Text.DecoderExceptionFallbackBuffer.Throw
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true