Azure / Azure/azure-functions-java-library
Bindings not working
- Lingua principale
- Java
- Stelle
- 45
- Fork
- 49
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have a function using QueueTrigger and I want to get some metadata info:
`@FunctionName("func-name")
public void run(
@ServiceBusQueueTrigger(
name = "message",
queueName = "%SERVICE_BUS_QUEUE_NAME%",
connection = "some connection details"
) String message,
//@BindingName("ApplicationProperties") Map applicationProperties,
//@BindingName("DeliveryCount") int deliveryCount,
@BindingName("MessageId") String messageId,
//@BindingName("deadLetterSource") String deadLetterSource,
//@BindingName("status") String status,
final ExecutionContext context
)`
The only data that I'm able to retrieve is the message MessageId. If I uncomment any of the other bindings, I get the following error:
**Cannot find matched @BindingName of customer function, please check if customer function is defined correctly**
But when I go to the queue and select a message and go to the tab Message Properties, I can see the properties but for some reason I'm not able to get it. Any hints of what might be?
I see the properties from the Dead letter queue and I'm resending the message to the queue.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Parti dalla funzione run e dai suoi parametri ServiceBusQueueTrigger e BindingName. Confronta i nomi richiesti—ApplicationProperties, DeliveryCount, deadLetterSource e status—con i metadati esposti dal binding Java e le proprietà del messaggio dead-letter descritte nell’issue. Riproduci l’errore del binding con un parametro non commentato e determina quali nomi di metadati sono supportati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, java
- Ambito
- backend, cloud
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100