Skip to content

Commit 72bdbfd

Browse files
github-actions[bot]github-actionseucyt
authored
Add new errorCode 4 of NarrowcastProgressResponse (#733)
A new errorCode has been added to NarrowcastProgressResponse. New number is 4. 4 means an audience of less than 50 recipients is included as a condition of sending. Previously, it was not possible to determine whether an error occurred due to a lack of enough recipients or because an audience of less than 50 recipients is included as a condition of sending. This will be fixed with the update to the Messaging API, so the description of errorCode on OpenAPI will also be revised. Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Yuta Euchi <63095160+eucyt@users.noreply.github.com>
1 parent b1810c6 commit 72bdbfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linebot/v3/messaging/models/narrowcast_progress_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NarrowcastProgressResponse(BaseModel):
3131
failure_count: Optional[StrictInt] = Field(None, alias="failureCount", description="The number of users who failed to send the message.")
3232
target_count: Optional[StrictInt] = Field(None, alias="targetCount", description="The number of intended recipients of the message.")
3333
failed_description: Optional[StrictStr] = Field(None, alias="failedDescription", description="The reason the message failed to be sent. This is only included with a `phase` property value of `failed`.")
34-
error_code: Optional[StrictInt] = Field(None, alias="errorCode", description="Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. ")
34+
error_code: Optional[StrictInt] = Field(None, alias="errorCode", description="Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending. ")
3535
accepted_time: datetime = Field(..., alias="acceptedTime", description="Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC ")
3636
completed_time: Optional[datetime] = Field(None, alias="completedTime", description="Processing of narrowcast message request completion time in milliseconds. Returned when the phase property is succeeded or failed. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC ")
3737

0 commit comments

Comments
 (0)