-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Failed to upload blob: Wrong number of arguments; expected 1, got 0 #40715
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
Thanks for filing this issue @peter6053. Unassigning @ibrahimrabab as this is an issue with Looks like this is a case where a few locations within |
sorry, what the fix for this, not sure if i got the explanation correctly
…On Thu, Jun 20, 2024 at 12:30 AM Alan Zimmer ***@***.***> wrote:
Closed #40715 <#40715>
as completed via #40719
<#40719>.
—
Reply to this email directly, view it on GitHub
<#40715 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AISBGQGZSRCZRAFGCRZNDS3ZIH2APAVCNFSM6AAAAABJSCPCLWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGIZDCMBXGI2DAMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
regards peter
+254710940709
Check the code, its always true
|
Hi @peter6053, the issue was with how we were performing reflective calls when in an environment that doesn't have the The fix will be available sometime in early July when we release our libraries again. |
Thank you for the clarification.
…On Tue, Jun 25, 2024 at 4:06 PM Alan Zimmer ***@***.***> wrote:
Hi @peter6053 <https://github.com/peter6053>, the issue was with how we
were performing reflective calls when in an environment that doesn't have
the java.lang.invoke package, a common case for Android, and when we fall
back to using java.lang.reflect. There was an issue where the arguments
used to reflectively invoke constructors and static methods were being
consumed incorrectly, leading to the exception you are seeing.
The fix will be available sometime in early July when we release our
libraries again.
—
Reply to this email directly, view it on GitHub
<#40715 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AISBGQBXNVPBNSGAPHBEIMDZJFTNJAVCNFSM6AAAAABJSCPCLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBYHA4TKOJTGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
regards peter
+254710940709
Check the code, its always true
|
Describe the bug
Am trying to upload a n image
Exception or Stack Trace
Add the exception log and stack trace if available
E Failed to upload blob: Wrong number of arguments; expected 1, got 0
java.lang.IllegalArgumentException: Wrong number of arguments; expected 1, got 0
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at com.azure.core.implementation.ConstructorReflectiveInvoker.invokeWithArguments(ConstructorReflectiveInvoker.java:24)
at com.azure.core.implementation.jackson.ObjectMapperShim.deserialize(ObjectMapperShim.java:336)
at com.azure.core.util.serializer.JacksonAdapter.lambda$deserialize$11$com-azure-core-util-serializer-JacksonAdapter(JacksonAdapter.java:453)
at com.azure.core.util.serializer.JacksonAdapter$$ExternalSyntheticLambda9.call(Unknown Source:6)
at com.azure.core.util.serializer.JacksonAdapter.useAccessHelper(JacksonAdapter.java:484)
at com.azure.core.util.serializer.JacksonAdapter.deserialize(JacksonAdapter.java:453)
at com.azure.core.implementation.serializer.HttpResponseHeaderDecoder.decode(HttpResponseHeaderDecoder.java:39)
at com.azure.core.implementation.serializer.HttpResponseDecoder$HttpDecodedResponse.getDecodedHeaders(HttpResponseDecoder.java:107)
at com.azure.core.implementation.http.rest.RestProxyBase.createResponse(RestProxyBase.java:185)
at com.azure.core.implementation.http.rest.AsyncRestProxy.lambda$handleRestResponseReturnType$5$com-azure-core-implementation-http-rest-AsyncRestProxy(AsyncRestProxy.java:149)
at com.azure.core.implementation.http.rest.AsyncRestProxy$$ExternalSyntheticLambda11.call(Unknown Source:6)
at reactor.core.publisher.MonoCallable.call(MonoCallable.java:92)
To Reproduce
Steps to reproduce the behavior:
Have Android Studio Flamingo | 2022.2.1 Patch 2 install try to upload an image
Code Snippet
Add the code snippet that causes the issue.
try {
// Using the correct upload method
blobClient.upload(imageStream, imageByteArray.size.toLong(), true)
val imageUrl = blobClient.blobUrl
Log.d("Upload Success", "Uploaded to: $imageUrl")
runOnUiThread {
Toast.makeText(this@IssueParcelActivity, "Uploaded to: $imageUrl", Toast.LENGTH_LONG).show()
}
}
Expected behavior
A clear and concise description of what you expected to happen.
the response should say Failed to upload blob: Wrong number of arguments; expected 1, got 0
java.lang.IllegalArgumentException: Wrong number of arguments; expected 1, got 0
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
If you suspect a dependency version mismatch (e.g. you see
NoClassDefFoundError
,NoSuchMethodError
or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:mvn dependency:tree -Dverbose
)Additional context
Add any other context about the problem here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: