Comments (13)
Are you using version v0.15?
Do you know how to reproduce that?
Are you seeing it often or has it only happened once?
from java-sparkpost.
At least 4 times, and no, i don't have the way to reproduce it.
from java-sparkpost.
Ok, thanks for reporting it. I will look into it.
from java-sparkpost.
Are you still seeing this NPE? I think I've narrowed down the source of this error some but want to see if you are still seeing the problem.
from java-sparkpost.
it occurred twice yesterday 27/04/2016 same stacktrace, i managed to catch it, but the response will be null so i will not be able to tell if the email was sent or not.
from java-sparkpost.
Thanks for the update. I'm trying to understand why this happen. The code change will be to throw a SparkPost exception like it is trying to do anyway but did not just want to add the catch exception quite yet until I can understand it better. I am expecting this is some sort of connection error or the socket is getting dropped for some reason.
I will get a fix out soon.
from java-sparkpost.
I am expecting this is some sort of connection error or the socket is getting dropped for some reason.
I believe this error can be reproduced in various ways.
Simple way to reproduce:
RestConnection restConnection = new RestConnection(new Client("YOUR_API_KEY"));
Webhook webhook = new Webhook();
webhook.setName("name with spaces");
ResourceWebhooks.update(restConnection, webhook.getName(), webhook);
Reason: server returns empty response. In my case it was response with 400 code and empty content( conn.getContentLength() == 0).
Btw, ResourceWebhooks.update must use PUT instead of POST =)
from java-sparkpost.
One more way: delete existing webhook. Response with OK status code and empty body. NPE was thrown.
from java-sparkpost.
In my case, it was during a transmission
from java-sparkpost.
Thank you trying to get to this today.
from java-sparkpost.
I've put a fix in a branch
from java-sparkpost.
Do you know when is this going to be merged?
from java-sparkpost.
Fixed in v0.16.1
from java-sparkpost.
Related Issues (20)
- Log4j critical vulnerability!! HOT 4
- SuppressionList update endpoints throw com.google.gson.JsonSyntaxException
- RestConnection does not honor Client base URL
- Upgrade to Log4J 2.17.1
- Webhook events no longer derive from AbstractWebhookEvent, making getting type more difficult
- Webhook fields initial_pixel and open_tracking are presented as int, rather than boolean in event classes, making deserialization harder
- GSON error when calling insertOrUpdate or insertOrUpdateBulk
- Add 'template_id' key in X-MSYS-API Custom Header
- SparkPost/Java
- Unable to use Java SDK to map the Webhook Event
- Support for EventsAPI
- Webhook active property missing from model HOT 2
- Webhook properties are out of date HOT 1
- attach pdf HOT 2
- Webhook resource is missing /validate endpoint
- SparkPost Java API Suppression list limitations HOT 1
- event webhook - handle ping events
- Message Event API ending point changed - please update HOT 1
- TransimisionBase should allow other types than String for Metadata value HOT 2
- Subaccount CRUDs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-sparkpost.