URISyntaxException error with MailChimp - exception

I'm getting this type of error:
java.net.URISyntaxException: Illegal character in authority at index 8: https://us7";.api.mailchimp.com/1.3/?method=lists
Firstly, I've checked that my code it works in a simple project Maven 2 project. Later, I've moved my code in my application, but it doesn't work correctly !
Any ideas would be appreciated !
Thanks in advance !

Finally, I've solved my problem. The key I've written in a properties file, it was with double quotes and semi-colon.

Related

What is the cause of FluentValidation Method Not Found exception?

I've got a Domain Driven Design solution and for some reason, I'm getting this exception at RunTime when the API call is made through GateWay:
One or more errors occurred. (Method not found: 'Void FluentValidation.AbstractValidator`1.When(System.Func`2<!0,Boolean>, System.Action)'.)
The error occurs as below:
I have solution like this:
The main 4 project I'm focusing on right now are:
Core.Model
Account.Api
Service.Api.Gateway
Web.ClientSite
Web.ClientSite makes request to Service.Api.Gateway which then calls Account.Api.
Note that Core.Model is referenced everywhere
VERY IMPORTANT: If I remove the reference of FluentValidation from Core.Model, the exception disappears.
I'm hoping these information is enough. Why do you think I'm getting this exception and how can I eliminate.
Looks like some of libs (ocelot) are incompatible with new changes in FluentValidation 8.1.2. Try to downgrade to FluentValidation before 8.1.2. Hope it helps
I got similar exception:
System.MissingMethodException : Method not found:
'FluentValidation.AssemblyScanner
FluentValidation.AssemblyScanner.FindValidatorsInAssembly(System.Reflection.Assembly)'
In my case I needed to upgrade the ediatR.Extensions.Microsoft.DependencyInjection and MediatR.Extensions.FluentValidation.AspNetCore packages as well to fix the issue.

Can't resolve 'rxjs/add/operator/do'

I have created an Angular component in which I am importing rxjs do operator.
But getting error cant resolve.
ERROR in ./src/app/Members/member-messages/member-messages.component.ts
Module not found: Error: Can't resolve 'rxjs/add/operator/do' in 'C:\Demo\DatingApDemo\DatingApp\src\app\Members\member-messages'
What is the solution for this?
Thank you,
Sharayu
Finally, I am able to solve that issue.
do() is replaced by tap().
for reference https://www.academind.com/learn/javascript/rxjs-6-what-changed/
and
tap() should be inside .pipe().
like this, .pipe(tap())
for more reference, you can refer this link,
https://alligator.io/angular/angular-6/
and
https://www.learnrxjs.io/operators/utility/do.html

Syslog-ng format-json not working

I'm desperately trying to send a message as JSON to a PHP script.
destination d_php {
program("/usr/bin/php -f /data/htdocs/log.php" template("$(format-json)\n") ) ;
};
The php script is fine. Using simple macros works well, but the "format-json" function does always return this:
error in template: $(format-json)
I tried everything I could find in the documentation, but all response I get is "error in template". The official docs (link) even use 2 different spellings, not very promising.
Any ideas?
the format-json and format_json syntax should both work, hyphens and underscores are equivalent in syslog-ng.
As for the actual problem, have you tried setting the scope parameter of format-json, like "$(format_json --scope selected_macros)"? By default, it is empty, which means there is nothing to format.
HTH,
Regards,
Robert Fekete
Found the reason. Apparently, syslog-ng is split into separate packages on Ubuntu (12). I had to install syslog-ng-mod-json.
It's really a shame that syslog-ng doesn't give the slightest hint that the function is missing or unknown, instead of some general error.
If you are compiling from the source, you shall install json-c library first (yum install json-c-devel).

AS3 Error 1180 Call to a possibly undefined method in IntelliJ

I am getting compiler error:
Error 1180: Call to a possibly undefined method when all imports are ok and all method definitions are ok in IntelliJ, double checked?
What could it be?
I had the same trouble, but solution was very easy. One of my package in project was with name "notification" and it had conflict with standart package name, so i had changed name to "notificationS" and compilier had began work without erros.
The thing is if you did some refactoring on the class that you are getting the error, you have to go to menu:
Build > Rebuild Project
If you just do debug or run, it doesnt work for some reason.
I am not sure if the reason is simple refactoring or some git merge, but solution is here.

Parsing twitter API Namespace georss:point Not bound

We are parsing the Twitter API in our application. This used to be working fine till yesterday, but now we get the following exception:
javax.xml.bind.DataBindingException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 37; columnNumber: 577; The prefix "georss" for element "georss:point" is not bound.]
at javax.xml.bind.JAXB.unmarshal(JAXB.java:225)
Seems like there is a new XML tag present: georss:point The feed lacks the namespace declaration for the georss microformat and hence an error is thrown. Is someone also facing this issue? Does a work-round exist for this? Because it is bringing my app down currently.
Any help in this regard is highly appriciated. Thanks, Vaibhav.
The problem appears to be that the xmlns declaration for georss is missing from the feed since yesterday:
xmlns:georss="http://www.georss.org/georss"
There was a similar issue reported about a year ago (https://dev.twitter.com/discussions/625), seems to have resurfaced. Try adding that declaration.
Edit: the current issue has also been posted https://dev.twitter.com/discussions/10491
Yes wkoot removing the geo tag instead as i was not using it anyways then parsing the String now :( the only 2 legitimate solutions for now...